Doxy, -Wall -Werror, other cleanup and organization first round
This commit is contained in:
146
src/IO.Swagger/Models/RequestDto/CurrencyAddAssetBody.cs
Normal file
146
src/IO.Swagger/Models/RequestDto/CurrencyAddAssetBody.cs
Normal file
@ -0,0 +1,146 @@
|
||||
/*
|
||||
* T&J Central Bank API
|
||||
*
|
||||
* API documentation for T&J Central Bank's digital wallets
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*/
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
|
||||
namespace IO.Swagger.Models.RequestDto
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CurrencyAddAssetBody : IEquatable<CurrencyAddAssetBody>
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets CollectionId
|
||||
/// </summary>
|
||||
|
||||
[DataMember(Name = "collectionId")]
|
||||
public int? CollectionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AssetName
|
||||
/// </summary>
|
||||
|
||||
[StringLength(32, MinimumLength = 1)]
|
||||
[DataMember(Name = "assetName")]
|
||||
public string AssetName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AssetLink
|
||||
/// </summary>
|
||||
[RegularExpression("/^(https?|ftp)://[^\\s/$.?#].[^\\s]*$/")]
|
||||
[DataMember(Name = "assetLink")]
|
||||
public string AssetLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class CurrencyAddAssetBody {\n");
|
||||
sb.Append(" CollectionId: ").Append(CollectionId).Append("\n");
|
||||
sb.Append(" AssetName: ").Append(AssetName).Append("\n");
|
||||
sb.Append(" AssetLink: ").Append(AssetLink).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 string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="obj">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (ReferenceEquals(null, obj)) return false;
|
||||
if (ReferenceEquals(this, obj)) return true;
|
||||
return obj.GetType() == GetType() && Equals((CurrencyAddAssetBody)obj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CurrencyAddAssetBody instances are equal
|
||||
/// </summary>
|
||||
/// <param name="other">Instance of CurrencyAddAssetBody to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CurrencyAddAssetBody other)
|
||||
{
|
||||
if (ReferenceEquals(null, other)) return false;
|
||||
if (ReferenceEquals(this, other)) return true;
|
||||
|
||||
return
|
||||
(
|
||||
CollectionId == other.CollectionId ||
|
||||
CollectionId != null &&
|
||||
CollectionId.Equals(other.CollectionId)
|
||||
) &&
|
||||
(
|
||||
AssetName == other.AssetName ||
|
||||
AssetName != null &&
|
||||
AssetName.Equals(other.AssetName)
|
||||
) &&
|
||||
(
|
||||
AssetLink == other.AssetLink ||
|
||||
AssetLink != null &&
|
||||
AssetLink.Equals(other.AssetLink)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
var hashCode = 41;
|
||||
// Suitable nullity checks etc, of course :)
|
||||
if (CollectionId != null)
|
||||
hashCode = hashCode * 59 + CollectionId.GetHashCode();
|
||||
if (AssetName != null)
|
||||
hashCode = hashCode * 59 + AssetName.GetHashCode();
|
||||
if (AssetLink != null)
|
||||
hashCode = hashCode * 59 + AssetLink.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
#region Operators
|
||||
#pragma warning disable 1591
|
||||
|
||||
public static bool operator ==(CurrencyAddAssetBody left, CurrencyAddAssetBody right)
|
||||
{
|
||||
return Equals(left, right);
|
||||
}
|
||||
|
||||
public static bool operator !=(CurrencyAddAssetBody left, CurrencyAddAssetBody right)
|
||||
{
|
||||
return !Equals(left, right);
|
||||
}
|
||||
|
||||
#pragma warning restore 1591
|
||||
#endregion Operators
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user