|
| 1 | +/* |
| 2 | + * Regula Document Reader Web API |
| 3 | + * |
| 4 | + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core |
| 5 | + * |
| 6 | + * The version of the OpenAPI document: 7.1.0 |
| 7 | + * |
| 8 | + * Generated by: https://github.com/openapitools/openapi-generator.git |
| 9 | + */ |
| 10 | + |
| 11 | +using System; |
| 12 | +using System.Linq; |
| 13 | +using System.IO; |
| 14 | +using System.Text; |
| 15 | +using System.Text.RegularExpressions; |
| 16 | +using System.Collections; |
| 17 | +using System.Collections.Generic; |
| 18 | +using System.Collections.ObjectModel; |
| 19 | +using System.Runtime.Serialization; |
| 20 | +using Newtonsoft.Json; |
| 21 | +using Newtonsoft.Json.Converters; |
| 22 | +using System.ComponentModel.DataAnnotations; |
| 23 | +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; |
| 24 | + |
| 25 | +namespace Regula.DocumentReader.WebClient.Model |
| 26 | +{ |
| 27 | + /// <summary> |
| 28 | + /// TransactionImagesFieldValue |
| 29 | + /// </summary> |
| 30 | + [DataContract] |
| 31 | + public partial class TransactionImagesFieldValue : IEquatable<TransactionImagesFieldValue>, IValidatableObject |
| 32 | + { |
| 33 | + /// <summary> |
| 34 | + /// Initializes a new instance of the <see cref="TransactionImagesFieldValue" /> class. |
| 35 | + /// </summary> |
| 36 | + /// <param name="fieldType">fieldType.</param> |
| 37 | + /// <param name="light">light.</param> |
| 38 | + /// <param name="listIdx">listIdx.</param> |
| 39 | + /// <param name="pageIdx">Page index of the image from input list.</param> |
| 40 | + /// <param name="url">Image url.</param> |
| 41 | + public TransactionImagesFieldValue(int fieldType = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), string url = default(string)) |
| 42 | + { |
| 43 | + this.FieldType = fieldType; |
| 44 | + this.Light = light; |
| 45 | + this.ListIdx = listIdx; |
| 46 | + this.PageIdx = pageIdx; |
| 47 | + this.Url = url; |
| 48 | + } |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// Gets or Sets FieldType |
| 52 | + /// </summary> |
| 53 | + [DataMember(Name="fieldType", EmitDefaultValue=false)] |
| 54 | + public int FieldType { get; set; } |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// Gets or Sets Light |
| 58 | + /// </summary> |
| 59 | + [DataMember(Name="light", EmitDefaultValue=false)] |
| 60 | + public int Light { get; set; } |
| 61 | + |
| 62 | + /// <summary> |
| 63 | + /// Gets or Sets ListIdx |
| 64 | + /// </summary> |
| 65 | + [DataMember(Name="listIdx", EmitDefaultValue=false)] |
| 66 | + public int ListIdx { get; set; } |
| 67 | + |
| 68 | + /// <summary> |
| 69 | + /// Page index of the image from input list |
| 70 | + /// </summary> |
| 71 | + /// <value>Page index of the image from input list</value> |
| 72 | + [DataMember(Name="pageIdx", EmitDefaultValue=false)] |
| 73 | + public int PageIdx { get; set; } |
| 74 | + |
| 75 | + /// <summary> |
| 76 | + /// Image url |
| 77 | + /// </summary> |
| 78 | + /// <value>Image url</value> |
| 79 | + [DataMember(Name="url", EmitDefaultValue=false)] |
| 80 | + public string Url { get; set; } |
| 81 | + |
| 82 | + /// <summary> |
| 83 | + /// Returns the string presentation of the object |
| 84 | + /// </summary> |
| 85 | + /// <returns>String presentation of the object</returns> |
| 86 | + public override string ToString() |
| 87 | + { |
| 88 | + var sb = new StringBuilder(); |
| 89 | + sb.Append("class TransactionImagesFieldValue {\n"); |
| 90 | + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); |
| 91 | + sb.Append(" Light: ").Append(Light).Append("\n"); |
| 92 | + sb.Append(" ListIdx: ").Append(ListIdx).Append("\n"); |
| 93 | + sb.Append(" PageIdx: ").Append(PageIdx).Append("\n"); |
| 94 | + sb.Append(" Url: ").Append(Url).Append("\n"); |
| 95 | + sb.Append("}\n"); |
| 96 | + return sb.ToString(); |
| 97 | + } |
| 98 | + |
| 99 | + /// <summary> |
| 100 | + /// Returns the JSON string presentation of the object |
| 101 | + /// </summary> |
| 102 | + /// <returns>JSON string presentation of the object</returns> |
| 103 | + public virtual string ToJson() |
| 104 | + { |
| 105 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 106 | + } |
| 107 | + |
| 108 | + /// <summary> |
| 109 | + /// Returns true if objects are equal |
| 110 | + /// </summary> |
| 111 | + /// <param name="input">Object to be compared</param> |
| 112 | + /// <returns>Boolean</returns> |
| 113 | + public override bool Equals(object input) |
| 114 | + { |
| 115 | + return this.Equals(input as TransactionImagesFieldValue); |
| 116 | + } |
| 117 | + |
| 118 | + /// <summary> |
| 119 | + /// Returns true if TransactionImagesFieldValue instances are equal |
| 120 | + /// </summary> |
| 121 | + /// <param name="input">Instance of TransactionImagesFieldValue to be compared</param> |
| 122 | + /// <returns>Boolean</returns> |
| 123 | + public bool Equals(TransactionImagesFieldValue input) |
| 124 | + { |
| 125 | + if (input == null) |
| 126 | + return false; |
| 127 | + |
| 128 | + return |
| 129 | + ( |
| 130 | + this.FieldType == input.FieldType || |
| 131 | + (this.FieldType != null && |
| 132 | + this.FieldType.Equals(input.FieldType)) |
| 133 | + ) && |
| 134 | + ( |
| 135 | + this.Light == input.Light || |
| 136 | + (this.Light != null && |
| 137 | + this.Light.Equals(input.Light)) |
| 138 | + ) && |
| 139 | + ( |
| 140 | + this.ListIdx == input.ListIdx || |
| 141 | + (this.ListIdx != null && |
| 142 | + this.ListIdx.Equals(input.ListIdx)) |
| 143 | + ) && |
| 144 | + ( |
| 145 | + this.PageIdx == input.PageIdx || |
| 146 | + (this.PageIdx != null && |
| 147 | + this.PageIdx.Equals(input.PageIdx)) |
| 148 | + ) && |
| 149 | + ( |
| 150 | + this.Url == input.Url || |
| 151 | + (this.Url != null && |
| 152 | + this.Url.Equals(input.Url)) |
| 153 | + ); |
| 154 | + } |
| 155 | + |
| 156 | + /// <summary> |
| 157 | + /// Gets the hash code |
| 158 | + /// </summary> |
| 159 | + /// <returns>Hash code</returns> |
| 160 | + public override int GetHashCode() |
| 161 | + { |
| 162 | + unchecked // Overflow is fine, just wrap |
| 163 | + { |
| 164 | + int hashCode = 41; |
| 165 | + if (this.FieldType != null) |
| 166 | + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); |
| 167 | + if (this.Light != null) |
| 168 | + hashCode = hashCode * 59 + this.Light.GetHashCode(); |
| 169 | + if (this.ListIdx != null) |
| 170 | + hashCode = hashCode * 59 + this.ListIdx.GetHashCode(); |
| 171 | + if (this.PageIdx != null) |
| 172 | + hashCode = hashCode * 59 + this.PageIdx.GetHashCode(); |
| 173 | + if (this.Url != null) |
| 174 | + hashCode = hashCode * 59 + this.Url.GetHashCode(); |
| 175 | + return hashCode; |
| 176 | + } |
| 177 | + } |
| 178 | + |
| 179 | + /// <summary> |
| 180 | + /// To validate all properties of the instance |
| 181 | + /// </summary> |
| 182 | + /// <param name="validationContext">Validation context</param> |
| 183 | + /// <returns>Validation Result</returns> |
| 184 | + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
| 185 | + { |
| 186 | + yield break; |
| 187 | + } |
| 188 | + } |
| 189 | + |
| 190 | +} |
0 commit comments