-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathVDSData.cs
More file actions
191 lines (171 loc) · 7.92 KB
/
VDSData.cs
File metadata and controls
191 lines (171 loc) · 7.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/*
* Regula Document Reader Web API
*
* 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
*
* The version of the OpenAPI document: 8.1.0
* 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 = Regula.DocumentReader.WebClient.Client.FileParameter;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;
namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// VDSData
/// </summary>
[DataContract(Name = "VDSData")]
public partial class VDSData : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="VDSData" /> class.
/// </summary>
/// <param name="certificate">certificate.</param>
/// <param name="certificateChain">certificateChain.</param>
/// <param name="docFeatures">docFeatures.</param>
/// <param name="docIssueDate">docIssueDate.</param>
/// <param name="docType">docType.</param>
/// <param name="featureRef">featureRef.</param>
/// <param name="issuingCountry">issuingCountry.</param>
/// <param name="notifications">notifications.</param>
/// <param name="signature">signature.</param>
/// <param name="signatureDate">signatureDate.</param>
/// <param name="signer">signer.</param>
/// <param name="type">type.</param>
/// <param name="varVersion">varVersion.</param>
public VDSData(string certificate = default(string), List<RfidCertificateEx> certificateChain = default(List<RfidCertificateEx>), List<DocFeature> docFeatures = default(List<DocFeature>), string docIssueDate = default(string), int docType = default(int), int featureRef = default(int), string issuingCountry = default(string), List<long> notifications = default(List<long>), TrfFtBytes signature = default(TrfFtBytes), string signatureDate = default(string), string signer = default(string), int type = default(int), int varVersion = default(int))
{
this.Certificate = certificate;
this.CertificateChain = certificateChain;
this.DocFeatures = docFeatures;
this.DocIssueDate = docIssueDate;
this.DocType = docType;
this.FeatureRef = featureRef;
this.IssuingCountry = issuingCountry;
this.Notifications = notifications;
this.Signature = signature;
this.SignatureDate = signatureDate;
this.Signer = signer;
this.Type = type;
this.VarVersion = varVersion;
}
/// <summary>
/// Gets or Sets Certificate
/// </summary>
[DataMember(Name = "Certificate", EmitDefaultValue = false)]
public string? Certificate { get; set; }
/// <summary>
/// Gets or Sets CertificateChain
/// </summary>
[DataMember(Name = "CertificateChain", EmitDefaultValue = false)]
public List<RfidCertificateEx>? CertificateChain { get; set; }
/// <summary>
/// Gets or Sets DocFeatures
/// </summary>
[DataMember(Name = "DocFeatures", EmitDefaultValue = false)]
public List<DocFeature>? DocFeatures { get; set; }
/// <summary>
/// Gets or Sets DocIssueDate
/// </summary>
[DataMember(Name = "DocIssueDate", EmitDefaultValue = false)]
public string? DocIssueDate { get; set; }
/// <summary>
/// Gets or Sets DocType
/// </summary>
[DataMember(Name = "DocType", EmitDefaultValue = false)]
public int? DocType { get; set; }
/// <summary>
/// Gets or Sets FeatureRef
/// </summary>
[DataMember(Name = "FeatureRef", EmitDefaultValue = false)]
public int? FeatureRef { get; set; }
/// <summary>
/// Gets or Sets IssuingCountry
/// </summary>
[DataMember(Name = "IssuingCountry", EmitDefaultValue = false)]
public string? IssuingCountry { get; set; }
/// <summary>
/// Gets or Sets Notifications
/// </summary>
[DataMember(Name = "Notifications", EmitDefaultValue = false)]
public List<long>? Notifications { get; set; }
/// <summary>
/// Gets or Sets Signature
/// </summary>
[DataMember(Name = "Signature", EmitDefaultValue = false)]
public TrfFtBytes? Signature { get; set; }
/// <summary>
/// Gets or Sets SignatureDate
/// </summary>
[DataMember(Name = "SignatureDate", EmitDefaultValue = false)]
public string? SignatureDate { get; set; }
/// <summary>
/// Gets or Sets Signer
/// </summary>
[DataMember(Name = "Signer", EmitDefaultValue = false)]
public string? Signer { get; set; }
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name = "Type", EmitDefaultValue = false)]
public int? Type { get; set; }
/// <summary>
/// Gets or Sets VarVersion
/// </summary>
[DataMember(Name = "Version", EmitDefaultValue = false)]
public int? VarVersion { 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 VDSData {\n");
sb.Append(" Certificate: ").Append(Certificate).Append("\n");
sb.Append(" CertificateChain: ").Append(CertificateChain).Append("\n");
sb.Append(" DocFeatures: ").Append(DocFeatures).Append("\n");
sb.Append(" DocIssueDate: ").Append(DocIssueDate).Append("\n");
sb.Append(" DocType: ").Append(DocType).Append("\n");
sb.Append(" FeatureRef: ").Append(FeatureRef).Append("\n");
sb.Append(" IssuingCountry: ").Append(IssuingCountry).Append("\n");
sb.Append(" Notifications: ").Append(Notifications).Append("\n");
sb.Append(" Signature: ").Append(Signature).Append("\n");
sb.Append(" SignatureDate: ").Append(SignatureDate).Append("\n");
sb.Append(" Signer: ").Append(Signer).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" VarVersion: ").Append(VarVersion).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>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}