Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/SessionActivityContract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Immutable.Api.ZkEvm.Model.SessionActivityContract

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **int** | The unique identifier of the session activity contract | [optional]
**Name** | **string** | The name of the session activity contract | [optional]
**ContractAddress** | **string** | The smart contract address | [optional]
**ClientId** | **string** | The client ID associated with the session activity contract | [optional]
**ChainId** | **string** | The chain ID for the session activity contract | [optional]
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) | [optional]
**Enabled** | **bool** | Whether the session activity contract is enabled | [optional]
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Immutable.Api.ZkEvm.Model.SessionActivityContractResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **int** | The unique identifier of the session activity contract |
**Name** | **string** | The name of the session activity contract |
**ContractAddress** | **string** | The smart contract address |
**ClientId** | **string** | The client ID associated with the session activity contract |
**ChainId** | **string** | The chain ID for the session activity contract |
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) |
**Enabled** | **bool** | Whether the session activity contract is enabled |
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Immutable.Api.ZkEvm.Model.UpsertSessionActivityContractReq

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **int** | The unique identifier of the session activity contract | [optional]
**Name** | **string** | The name of the session activity contract |
**ContractAddress** | **string** | The smart contract address |
**ClientId** | **string** | The client ID associated with the session activity contract |
**ChainId** | **string** | The chain ID for the session activity contract |
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) |
**Enabled** | **bool** | Whether the session activity contract is enabled |
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Immutable.Api.ZkEvm.Model.UpsertSessionActivityContractResp

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **int** | The unique identifier of the session activity contract | [optional]
**Name** | **string** | The name of the session activity contract | [optional]
**ContractAddress** | **string** | The smart contract address | [optional]
**ClientId** | **string** | The client ID associated with the session activity contract | [optional]
**ChainId** | **string** | The chain ID for the session activity contract | [optional]
**OrganisationId** | **Guid** | The organisation ID that owns this session activity contract (UUID format) | [optional]
**Enabled** | **bool** | Whether the session activity contract is enabled | [optional]
**CreatedAt** | **DateTime** | The timestamp when the session activity contract was created | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

152 changes: 152 additions & 0 deletions src/Packages/ZkEvmApi/Runtime/Model/SessionActivityContract.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
/*
* Immutable zkEVM API
*
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
* 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);
}

}

}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading