-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRfidApplication.cs
More file actions
172 lines (158 loc) · 7.91 KB
/
Copy pathRfidApplication.cs
File metadata and controls
172 lines (158 loc) · 7.91 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
/*
* 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>
/// Structure is used to describe the contents of a single LDS application and their analysis within the context of the communication session with electronic document
/// </summary>
[DataContract(Name = "RfidApplication")]
public partial class RfidApplication : IValidatableObject
{
/// <summary>
/// Gets or Sets Status
/// </summary>
[DataMember(Name = "Status", IsRequired = true, EmitDefaultValue = true)]
public RFIDErrorCodes Status { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="RfidApplication" /> class.
/// </summary>
[JsonConstructorAttribute]
protected RfidApplication() { }
/// <summary>
/// Initializes a new instance of the <see cref="RfidApplication" /> class.
/// </summary>
/// <param name="type">type (required).</param>
/// <param name="status">status (required).</param>
/// <param name="applicationID">Application identifier (required).</param>
/// <param name="varVersion">Version of the application (required).</param>
/// <param name="unicodeVersion">Unicode version for application (required).</param>
/// <param name="dataHashAlgorithm">Algorithm for calculating hash values for files for the procedure of PA (required).</param>
/// <param name="files">List of containers to store information about the read files of the application (required).</param>
public RfidApplication(int type = default(int), RFIDErrorCodes status = default(RFIDErrorCodes), string applicationID = default(string), string varVersion = default(string), string unicodeVersion = default(string), string dataHashAlgorithm = default(string), List<RfidDataFile> files = default(List<RfidDataFile>))
{
this.Type = type;
this.Status = status;
// to ensure "applicationID" is required (not null)
if (applicationID == null)
{
throw new ArgumentNullException("applicationID is a required property for RfidApplication and cannot be null");
}
this.ApplicationID = applicationID;
// to ensure "varVersion" is required (not null)
if (varVersion == null)
{
throw new ArgumentNullException("varVersion is a required property for RfidApplication and cannot be null");
}
this.VarVersion = varVersion;
// to ensure "unicodeVersion" is required (not null)
if (unicodeVersion == null)
{
throw new ArgumentNullException("unicodeVersion is a required property for RfidApplication and cannot be null");
}
this.UnicodeVersion = unicodeVersion;
// to ensure "dataHashAlgorithm" is required (not null)
if (dataHashAlgorithm == null)
{
throw new ArgumentNullException("dataHashAlgorithm is a required property for RfidApplication and cannot be null");
}
this.DataHashAlgorithm = dataHashAlgorithm;
// to ensure "files" is required (not null)
if (files == null)
{
throw new ArgumentNullException("files is a required property for RfidApplication and cannot be null");
}
this.Files = files;
}
/// <summary>
/// Gets or Sets Type
/// </summary>
[DataMember(Name = "Type", IsRequired = true, EmitDefaultValue = true)]
public int Type { get; set; }
/// <summary>
/// Application identifier
/// </summary>
/// <value>Application identifier</value>
[DataMember(Name = "ApplicationID", IsRequired = true, EmitDefaultValue = true)]
public string ApplicationID { get; set; }
/// <summary>
/// Version of the application
/// </summary>
/// <value>Version of the application</value>
[DataMember(Name = "Version", IsRequired = true, EmitDefaultValue = true)]
public string VarVersion { get; set; }
/// <summary>
/// Unicode version for application
/// </summary>
/// <value>Unicode version for application</value>
[DataMember(Name = "UnicodeVersion", IsRequired = true, EmitDefaultValue = true)]
public string UnicodeVersion { get; set; }
/// <summary>
/// Algorithm for calculating hash values for files for the procedure of PA
/// </summary>
/// <value>Algorithm for calculating hash values for files for the procedure of PA</value>
[DataMember(Name = "DataHashAlgorithm", IsRequired = true, EmitDefaultValue = true)]
public string DataHashAlgorithm { get; set; }
/// <summary>
/// List of containers to store information about the read files of the application
/// </summary>
/// <value>List of containers to store information about the read files of the application</value>
[DataMember(Name = "Files", IsRequired = true, EmitDefaultValue = true)]
public List<RfidDataFile> Files { 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 RfidApplication {\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" ApplicationID: ").Append(ApplicationID).Append("\n");
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
sb.Append(" UnicodeVersion: ").Append(UnicodeVersion).Append("\n");
sb.Append(" DataHashAlgorithm: ").Append(DataHashAlgorithm).Append("\n");
sb.Append(" Files: ").Append(Files).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;
}
}
}