Skip to content

Commit

Permalink
Update the sdk to include the latest api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsviatkov committed Oct 4, 2023
1 parent b89a283 commit 5300873
Show file tree
Hide file tree
Showing 30 changed files with 2,532 additions and 102 deletions.

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions Openfort.SDK/Generated/Model/AddDepositorAddressRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
/*
* Openfort API
*
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
*
* The version of the OpenAPI document: 1.0.0
* Contact: founders@openfort.xyz
* 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 System.ComponentModel.DataAnnotations;
using FileParameter = Openfort.SDK.Client.FileParameter;
using OpenAPIDateConverter = Openfort.SDK.Client.OpenAPIDateConverter;

namespace Openfort.SDK.Model
{
/// <summary>
/// AddDepositorAddressRequest
/// </summary>
[DataContract(Name = "AddDepositorAddressRequest")]
public partial class AddDepositorAddressRequest : IEquatable<AddDepositorAddressRequest>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="AddDepositorAddressRequest" /> class.
/// </summary>
[JsonConstructorAttribute]
protected AddDepositorAddressRequest() { }
/// <summary>
/// Initializes a new instance of the <see cref="AddDepositorAddressRequest" /> class.
/// </summary>
/// <param name="depositorAddress">depositorAddress (required).</param>
/// <param name="signature">signature (required).</param>
public AddDepositorAddressRequest(string depositorAddress = default(string), string signature = default(string))
{
// to ensure "depositorAddress" is required (not null)
if (depositorAddress == null)
{
throw new ArgumentNullException("depositorAddress is a required property for AddDepositorAddressRequest and cannot be null");
}
this.DepositorAddress = depositorAddress;
// to ensure "signature" is required (not null)
if (signature == null)
{
throw new ArgumentNullException("signature is a required property for AddDepositorAddressRequest and cannot be null");
}
this.Signature = signature;
}

/// <summary>
/// Gets or Sets DepositorAddress
/// </summary>
[DataMember(Name = "depositorAddress", IsRequired = true, EmitDefaultValue = true)]
public string DepositorAddress { get; set; }

/// <summary>
/// Gets or Sets Signature
/// </summary>
[DataMember(Name = "signature", IsRequired = true, EmitDefaultValue = true)]
public string Signature { 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 AddDepositorAddressRequest {\n");
sb.Append(" DepositorAddress: ").Append(DepositorAddress).Append("\n");
sb.Append(" Signature: ").Append(Signature).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);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as AddDepositorAddressRequest);
}

/// <summary>
/// Returns true if AddDepositorAddressRequest instances are equal
/// </summary>
/// <param name="input">Instance of AddDepositorAddressRequest to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(AddDepositorAddressRequest input)
{
if (input == null)
{
return false;
}
return
(
this.DepositorAddress == input.DepositorAddress ||
(this.DepositorAddress != null &&
this.DepositorAddress.Equals(input.DepositorAddress))
) &&
(
this.Signature == input.Signature ||
(this.Signature != null &&
this.Signature.Equals(input.Signature))
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.DepositorAddress != null)
{
hashCode = (hashCode * 59) + this.DepositorAddress.GetHashCode();
}
if (this.Signature != null)
{
hashCode = (hashCode * 59) + this.Signature.GetHashCode();
}
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
220 changes: 220 additions & 0 deletions Openfort.SDK/Generated/Model/ApiAuthorizedNetworkListResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
/*
* Openfort API
*
* Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
*
* The version of the OpenAPI document: 1.0.0
* Contact: founders@openfort.xyz
* 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 System.ComponentModel.DataAnnotations;
using FileParameter = Openfort.SDK.Client.FileParameter;
using OpenAPIDateConverter = Openfort.SDK.Client.OpenAPIDateConverter;

namespace Openfort.SDK.Model
{
/// <summary>
/// ApiAuthorizedNetworkListResponse
/// </summary>
[DataContract(Name = "ApiAuthorizedNetworkListResponse")]
public partial class ApiAuthorizedNetworkListResponse : IEquatable<ApiAuthorizedNetworkListResponse>, IValidatableObject
{

/// <summary>
/// Gets or Sets Object
/// </summary>
[DataMember(Name = "object", IsRequired = true, EmitDefaultValue = true)]
public ResponseTypeLIST Object { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ApiAuthorizedNetworkListResponse" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ApiAuthorizedNetworkListResponse() { }
/// <summary>
/// Initializes a new instance of the <see cref="ApiAuthorizedNetworkListResponse" /> class.
/// </summary>
/// <param name="_object">_object (required).</param>
/// <param name="url">url (required).</param>
/// <param name="data">data (required).</param>
/// <param name="start">start (required).</param>
/// <param name="end">end (required).</param>
/// <param name="total">total (required).</param>
public ApiAuthorizedNetworkListResponse(ResponseTypeLIST _object = default(ResponseTypeLIST), string url = default(string), List<ApiAuthorizedNetworkResponse> data = default(List<ApiAuthorizedNetworkResponse>), double start = default(double), double end = default(double), double total = default(double))
{
this.Object = _object;
// to ensure "url" is required (not null)
if (url == null)
{
throw new ArgumentNullException("url is a required property for ApiAuthorizedNetworkListResponse and cannot be null");
}
this.Url = url;
// to ensure "data" is required (not null)
if (data == null)
{
throw new ArgumentNullException("data is a required property for ApiAuthorizedNetworkListResponse and cannot be null");
}
this.Data = data;
this.Start = start;
this.End = end;
this.Total = total;
}

/// <summary>
/// Gets or Sets Url
/// </summary>
[DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)]
public string Url { get; set; }

/// <summary>
/// Gets or Sets Data
/// </summary>
[DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)]
public List<ApiAuthorizedNetworkResponse> Data { get; set; }

/// <summary>
/// Gets or Sets Start
/// </summary>
[DataMember(Name = "start", IsRequired = true, EmitDefaultValue = true)]
public double Start { get; set; }

/// <summary>
/// Gets or Sets End
/// </summary>
[DataMember(Name = "end", IsRequired = true, EmitDefaultValue = true)]
public double End { get; set; }

/// <summary>
/// Gets or Sets Total
/// </summary>
[DataMember(Name = "total", IsRequired = true, EmitDefaultValue = true)]
public double Total { 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 ApiAuthorizedNetworkListResponse {\n");
sb.Append(" Object: ").Append(Object).Append("\n");
sb.Append(" Url: ").Append(Url).Append("\n");
sb.Append(" Data: ").Append(Data).Append("\n");
sb.Append(" Start: ").Append(Start).Append("\n");
sb.Append(" End: ").Append(End).Append("\n");
sb.Append(" Total: ").Append(Total).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);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ApiAuthorizedNetworkListResponse);
}

/// <summary>
/// Returns true if ApiAuthorizedNetworkListResponse instances are equal
/// </summary>
/// <param name="input">Instance of ApiAuthorizedNetworkListResponse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ApiAuthorizedNetworkListResponse input)
{
if (input == null)
{
return false;
}
return
(
this.Object == input.Object ||
this.Object.Equals(input.Object)
) &&
(
this.Url == input.Url ||
(this.Url != null &&
this.Url.Equals(input.Url))
) &&
(
this.Data == input.Data ||
this.Data != null &&
input.Data != null &&
this.Data.SequenceEqual(input.Data)
) &&
(
this.Start == input.Start ||
this.Start.Equals(input.Start)
) &&
(
this.End == input.End ||
this.End.Equals(input.End)
) &&
(
this.Total == input.Total ||
this.Total.Equals(input.Total)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.Object.GetHashCode();
if (this.Url != null)
{
hashCode = (hashCode * 59) + this.Url.GetHashCode();
}
if (this.Data != null)
{
hashCode = (hashCode * 59) + this.Data.GetHashCode();
}
hashCode = (hashCode * 59) + this.Start.GetHashCode();
hashCode = (hashCode * 59) + this.End.GetHashCode();
hashCode = (hashCode * 59) + this.Total.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading

0 comments on commit 5300873

Please sign in to comment.