-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathSessionActivityContract.cs
More file actions
152 lines (137 loc) · 6.38 KB
/
Copy pathSessionActivityContract.cs
File metadata and controls
152 lines (137 loc) · 6.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
* Immutable zkEVM API
*
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: support@immutable.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter;
namespace Immutable.Api.ZkEvm.Model
{
/// <summary>
/// SessionActivityContract
/// </summary>
[DataContract(Name = "SessionActivityContract")]
public partial class SessionActivityContract
{
/// <summary>
/// Initializes a new instance of the <see cref="SessionActivityContract" /> class.
/// </summary>
/// <param name="id">The unique identifier of the session activity contract.</param>
/// <param name="name">The name of the session activity contract.</param>
/// <param name="contractAddress">The smart contract address.</param>
/// <param name="clientId">The client ID associated with the session activity contract.</param>
/// <param name="chainId">The chain ID for the session activity contract.</param>
/// <param name="organisationId">The organisation ID that owns this session activity contract (UUID format).</param>
/// <param name="enabled">Whether the session activity contract is enabled.</param>
/// <param name="createdAt">The timestamp when the session activity contract was created.</param>
public SessionActivityContract(int id = default(int), string name = default(string), string contractAddress = default(string), string clientId = default(string), string chainId = default(string), Guid organisationId = default(Guid), bool enabled = default(bool), DateTime createdAt = default(DateTime))
{
this.Id = id;
this.Name = name;
this.ContractAddress = contractAddress;
this.ClientId = clientId;
this.ChainId = chainId;
this.OrganisationId = organisationId;
this.Enabled = enabled;
this.CreatedAt = createdAt;
}
/// <summary>
/// The unique identifier of the session activity contract
/// </summary>
/// <value>The unique identifier of the session activity contract</value>
/// <example>1</example>
[DataMember(Name = "id", EmitDefaultValue = false)]
public int Id { get; set; }
/// <summary>
/// The name of the session activity contract
/// </summary>
/// <value>The name of the session activity contract</value>
/// <example>Session Activity Contract 1</example>
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
/// <summary>
/// The smart contract address
/// </summary>
/// <value>The smart contract address</value>
/// <example>0x1234567890abcdef1234567890abcdef12345678</example>
[DataMember(Name = "contract_address", EmitDefaultValue = false)]
public string ContractAddress { get; set; }
/// <summary>
/// The client ID associated with the session activity contract
/// </summary>
/// <value>The client ID associated with the session activity contract</value>
/// <example>ZabAMafQRA9bWE1XatAtBYNe6DRamgqE</example>
[DataMember(Name = "client_id", EmitDefaultValue = false)]
public string ClientId { get; set; }
/// <summary>
/// The chain ID for the session activity contract
/// </summary>
/// <value>The chain ID for the session activity contract</value>
/// <example>eip155:13371</example>
[DataMember(Name = "chain_id", EmitDefaultValue = false)]
public string ChainId { get; set; }
/// <summary>
/// The organisation ID that owns this session activity contract (UUID format)
/// </summary>
/// <value>The organisation ID that owns this session activity contract (UUID format)</value>
/// <example>550e8400-e29b-41d4-a716-446655440000</example>
[DataMember(Name = "organisation_id", EmitDefaultValue = false)]
public Guid OrganisationId { get; set; }
/// <summary>
/// Whether the session activity contract is enabled
/// </summary>
/// <value>Whether the session activity contract is enabled</value>
/// <example>true</example>
[DataMember(Name = "enabled", EmitDefaultValue = true)]
public bool Enabled { get; set; }
/// <summary>
/// The timestamp when the session activity contract was created
/// </summary>
/// <value>The timestamp when the session activity contract was created</value>
/// <example>2023-12-07T10:30Z</example>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class SessionActivityContract {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" ContractAddress: ").Append(ContractAddress).Append("\n");
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
sb.Append(" ChainId: ").Append(ChainId).Append("\n");
sb.Append(" OrganisationId: ").Append(OrganisationId).Append("\n");
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
}
}