|
| 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.2.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 | + /// Document database information |
| 29 | + /// </summary> |
| 30 | + [DataContract] |
| 31 | + public partial class DocumentsDatabase : IEquatable<DocumentsDatabase>, IValidatableObject |
| 32 | + { |
| 33 | + /// <summary> |
| 34 | + /// Initializes a new instance of the <see cref="DocumentsDatabase" /> class. |
| 35 | + /// </summary> |
| 36 | + /// <param name="description">Document database description.</param> |
| 37 | + /// <param name="exportDate">Date the document database was created.</param> |
| 38 | + /// <param name="iD">Document database identifier.</param> |
| 39 | + /// <param name="version">Document database version.</param> |
| 40 | + public DocumentsDatabase(string description = default(string), string exportDate = default(string), string iD = default(string), string version = default(string)) |
| 41 | + { |
| 42 | + this.Description = description; |
| 43 | + this.ExportDate = exportDate; |
| 44 | + this.ID = iD; |
| 45 | + this.Version = version; |
| 46 | + } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Document database description |
| 50 | + /// </summary> |
| 51 | + /// <value>Document database description</value> |
| 52 | + [DataMember(Name="Description", EmitDefaultValue=false)] |
| 53 | + public string Description { get; set; } |
| 54 | + |
| 55 | + /// <summary> |
| 56 | + /// Date the document database was created |
| 57 | + /// </summary> |
| 58 | + /// <value>Date the document database was created</value> |
| 59 | + [DataMember(Name="ExportDate", EmitDefaultValue=false)] |
| 60 | + public string ExportDate { get; set; } |
| 61 | + |
| 62 | + /// <summary> |
| 63 | + /// Document database identifier |
| 64 | + /// </summary> |
| 65 | + /// <value>Document database identifier</value> |
| 66 | + [DataMember(Name="ID", EmitDefaultValue=false)] |
| 67 | + public string ID { get; set; } |
| 68 | + |
| 69 | + /// <summary> |
| 70 | + /// Document database version |
| 71 | + /// </summary> |
| 72 | + /// <value>Document database version</value> |
| 73 | + [DataMember(Name="Version", EmitDefaultValue=false)] |
| 74 | + public string Version { get; set; } |
| 75 | + |
| 76 | + /// <summary> |
| 77 | + /// Returns the string presentation of the object |
| 78 | + /// </summary> |
| 79 | + /// <returns>String presentation of the object</returns> |
| 80 | + public override string ToString() |
| 81 | + { |
| 82 | + var sb = new StringBuilder(); |
| 83 | + sb.Append("class DocumentsDatabase {\n"); |
| 84 | + sb.Append(" Description: ").Append(Description).Append("\n"); |
| 85 | + sb.Append(" ExportDate: ").Append(ExportDate).Append("\n"); |
| 86 | + sb.Append(" ID: ").Append(ID).Append("\n"); |
| 87 | + sb.Append(" Version: ").Append(Version).Append("\n"); |
| 88 | + sb.Append("}\n"); |
| 89 | + return sb.ToString(); |
| 90 | + } |
| 91 | + |
| 92 | + /// <summary> |
| 93 | + /// Returns the JSON string presentation of the object |
| 94 | + /// </summary> |
| 95 | + /// <returns>JSON string presentation of the object</returns> |
| 96 | + public virtual string ToJson() |
| 97 | + { |
| 98 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 99 | + } |
| 100 | + |
| 101 | + /// <summary> |
| 102 | + /// Returns true if objects are equal |
| 103 | + /// </summary> |
| 104 | + /// <param name="input">Object to be compared</param> |
| 105 | + /// <returns>Boolean</returns> |
| 106 | + public override bool Equals(object input) |
| 107 | + { |
| 108 | + return this.Equals(input as DocumentsDatabase); |
| 109 | + } |
| 110 | + |
| 111 | + /// <summary> |
| 112 | + /// Returns true if DocumentsDatabase instances are equal |
| 113 | + /// </summary> |
| 114 | + /// <param name="input">Instance of DocumentsDatabase to be compared</param> |
| 115 | + /// <returns>Boolean</returns> |
| 116 | + public bool Equals(DocumentsDatabase input) |
| 117 | + { |
| 118 | + if (input == null) |
| 119 | + return false; |
| 120 | + |
| 121 | + return |
| 122 | + ( |
| 123 | + this.Description == input.Description || |
| 124 | + (this.Description != null && |
| 125 | + this.Description.Equals(input.Description)) |
| 126 | + ) && |
| 127 | + ( |
| 128 | + this.ExportDate == input.ExportDate || |
| 129 | + (this.ExportDate != null && |
| 130 | + this.ExportDate.Equals(input.ExportDate)) |
| 131 | + ) && |
| 132 | + ( |
| 133 | + this.ID == input.ID || |
| 134 | + (this.ID != null && |
| 135 | + this.ID.Equals(input.ID)) |
| 136 | + ) && |
| 137 | + ( |
| 138 | + this.Version == input.Version || |
| 139 | + (this.Version != null && |
| 140 | + this.Version.Equals(input.Version)) |
| 141 | + ); |
| 142 | + } |
| 143 | + |
| 144 | + /// <summary> |
| 145 | + /// Gets the hash code |
| 146 | + /// </summary> |
| 147 | + /// <returns>Hash code</returns> |
| 148 | + public override int GetHashCode() |
| 149 | + { |
| 150 | + unchecked // Overflow is fine, just wrap |
| 151 | + { |
| 152 | + int hashCode = 41; |
| 153 | + if (this.Description != null) |
| 154 | + hashCode = hashCode * 59 + this.Description.GetHashCode(); |
| 155 | + if (this.ExportDate != null) |
| 156 | + hashCode = hashCode * 59 + this.ExportDate.GetHashCode(); |
| 157 | + if (this.ID != null) |
| 158 | + hashCode = hashCode * 59 + this.ID.GetHashCode(); |
| 159 | + if (this.Version != null) |
| 160 | + hashCode = hashCode * 59 + this.Version.GetHashCode(); |
| 161 | + return hashCode; |
| 162 | + } |
| 163 | + } |
| 164 | + |
| 165 | + /// <summary> |
| 166 | + /// To validate all properties of the instance |
| 167 | + /// </summary> |
| 168 | + /// <param name="validationContext">Validation context</param> |
| 169 | + /// <returns>Validation Result</returns> |
| 170 | + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
| 171 | + { |
| 172 | + yield break; |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | +} |
0 commit comments