|
| 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: 8.1.0 |
| 7 | + * Generated by: https://github.com/openapitools/openapi-generator.git |
| 8 | + */ |
| 9 | + |
| 10 | + |
| 11 | +using System; |
| 12 | +using System.Collections; |
| 13 | +using System.Collections.Generic; |
| 14 | +using System.Collections.ObjectModel; |
| 15 | +using System.Linq; |
| 16 | +using System.IO; |
| 17 | +using System.Runtime.Serialization; |
| 18 | +using System.Text; |
| 19 | +using System.Text.RegularExpressions; |
| 20 | +using Newtonsoft.Json; |
| 21 | +using Newtonsoft.Json.Converters; |
| 22 | +using Newtonsoft.Json.Linq; |
| 23 | +using System.ComponentModel.DataAnnotations; |
| 24 | +using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter; |
| 25 | +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; |
| 26 | + |
| 27 | +namespace Regula.DocumentReader.WebClient.Model |
| 28 | +{ |
| 29 | + /// <summary> |
| 30 | + /// DetailsAge |
| 31 | + /// </summary> |
| 32 | + [DataContract(Name = "DetailsAge")] |
| 33 | + public partial class DetailsAge : IValidatableObject |
| 34 | + { |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Gets or Sets OverThreshold |
| 38 | + /// </summary> |
| 39 | + [DataMember(Name = "overThreshold", IsRequired = true, EmitDefaultValue = true)] |
| 40 | + public CheckResult OverThreshold { get; set; } |
| 41 | + |
| 42 | + /// <summary> |
| 43 | + /// Gets or Sets Over18 |
| 44 | + /// </summary> |
| 45 | + [DataMember(Name = "over18", IsRequired = true, EmitDefaultValue = true)] |
| 46 | + public CheckResult Over18 { get; set; } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Gets or Sets Over21 |
| 50 | + /// </summary> |
| 51 | + [DataMember(Name = "over21", IsRequired = true, EmitDefaultValue = true)] |
| 52 | + public CheckResult Over21 { get; set; } |
| 53 | + |
| 54 | + /// <summary> |
| 55 | + /// Gets or Sets Over25 |
| 56 | + /// </summary> |
| 57 | + [DataMember(Name = "over25", IsRequired = true, EmitDefaultValue = true)] |
| 58 | + public CheckResult Over25 { get; set; } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// Gets or Sets Over65 |
| 62 | + /// </summary> |
| 63 | + [DataMember(Name = "over65", IsRequired = true, EmitDefaultValue = true)] |
| 64 | + public CheckResult Over65 { get; set; } |
| 65 | + /// <summary> |
| 66 | + /// Initializes a new instance of the <see cref="DetailsAge" /> class. |
| 67 | + /// </summary> |
| 68 | + [JsonConstructorAttribute] |
| 69 | + protected DetailsAge() { } |
| 70 | + /// <summary> |
| 71 | + /// Initializes a new instance of the <see cref="DetailsAge" /> class. |
| 72 | + /// </summary> |
| 73 | + /// <param name="threshold">threshold (required).</param> |
| 74 | + /// <param name="overThreshold">overThreshold (required).</param> |
| 75 | + /// <param name="over18">over18 (required).</param> |
| 76 | + /// <param name="over21">over21 (required).</param> |
| 77 | + /// <param name="over25">over25 (required).</param> |
| 78 | + /// <param name="over65">over65 (required).</param> |
| 79 | + public DetailsAge(int threshold = default(int), CheckResult overThreshold = default(CheckResult), CheckResult over18 = default(CheckResult), CheckResult over21 = default(CheckResult), CheckResult over25 = default(CheckResult), CheckResult over65 = default(CheckResult)) |
| 80 | + { |
| 81 | + this.Threshold = threshold; |
| 82 | + this.OverThreshold = overThreshold; |
| 83 | + this.Over18 = over18; |
| 84 | + this.Over21 = over21; |
| 85 | + this.Over25 = over25; |
| 86 | + this.Over65 = over65; |
| 87 | + } |
| 88 | + |
| 89 | + /// <summary> |
| 90 | + /// Gets or Sets Threshold |
| 91 | + /// </summary> |
| 92 | + [DataMember(Name = "threshold", IsRequired = true, EmitDefaultValue = true)] |
| 93 | + public int Threshold { get; set; } |
| 94 | + |
| 95 | + /// <summary> |
| 96 | + /// Returns the string presentation of the object |
| 97 | + /// </summary> |
| 98 | + /// <returns>String presentation of the object</returns> |
| 99 | + public override string ToString() |
| 100 | + { |
| 101 | + StringBuilder sb = new StringBuilder(); |
| 102 | + sb.Append("class DetailsAge {\n"); |
| 103 | + sb.Append(" Threshold: ").Append(Threshold).Append("\n"); |
| 104 | + sb.Append(" OverThreshold: ").Append(OverThreshold).Append("\n"); |
| 105 | + sb.Append(" Over18: ").Append(Over18).Append("\n"); |
| 106 | + sb.Append(" Over21: ").Append(Over21).Append("\n"); |
| 107 | + sb.Append(" Over25: ").Append(Over25).Append("\n"); |
| 108 | + sb.Append(" Over65: ").Append(Over65).Append("\n"); |
| 109 | + sb.Append("}\n"); |
| 110 | + return sb.ToString(); |
| 111 | + } |
| 112 | + |
| 113 | + /// <summary> |
| 114 | + /// Returns the JSON string presentation of the object |
| 115 | + /// </summary> |
| 116 | + /// <returns>JSON string presentation of the object</returns> |
| 117 | + public virtual string ToJson() |
| 118 | + { |
| 119 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 120 | + } |
| 121 | + |
| 122 | + /// <summary> |
| 123 | + /// To validate all properties of the instance |
| 124 | + /// </summary> |
| 125 | + /// <param name="validationContext">Validation context</param> |
| 126 | + /// <returns>Validation Result</returns> |
| 127 | + IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
| 128 | + { |
| 129 | + yield break; |
| 130 | + } |
| 131 | + } |
| 132 | + |
| 133 | +} |
0 commit comments