Skip to content

Commit ff82a1e

Browse files
Merge pull request #124 from regulaforensics/e5c434e9
update-clients
2 parents e3ccba3 + aa1449a commit ff82a1e

5 files changed

Lines changed: 834 additions & 0 deletions

File tree

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
/// BinaryDataResult
29+
/// </summary>
30+
[DataContract]
31+
public partial class BinaryDataResult : IEquatable<BinaryDataResult>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="BinaryDataResult" /> class.
35+
/// </summary>
36+
/// <param name="nFields">Count of array fields.</param>
37+
/// <param name="pArrayFields">pArrayFields.</param>
38+
public BinaryDataResult(int nFields = default(int), List<TBinaryData> pArrayFields = default(List<TBinaryData>))
39+
{
40+
this.NFields = nFields;
41+
this.PArrayFields = pArrayFields;
42+
}
43+
44+
/// <summary>
45+
/// Count of array fields
46+
/// </summary>
47+
/// <value>Count of array fields</value>
48+
[DataMember(Name="nFields", EmitDefaultValue=false)]
49+
public int NFields { get; set; }
50+
51+
/// <summary>
52+
/// Gets or Sets PArrayFields
53+
/// </summary>
54+
[DataMember(Name="pArrayFields", EmitDefaultValue=false)]
55+
public List<TBinaryData> PArrayFields { get; set; }
56+
57+
/// <summary>
58+
/// Returns the string presentation of the object
59+
/// </summary>
60+
/// <returns>String presentation of the object</returns>
61+
public override string ToString()
62+
{
63+
var sb = new StringBuilder();
64+
sb.Append("class BinaryDataResult {\n");
65+
sb.Append(" NFields: ").Append(NFields).Append("\n");
66+
sb.Append(" PArrayFields: ").Append(PArrayFields).Append("\n");
67+
sb.Append("}\n");
68+
return sb.ToString();
69+
}
70+
71+
/// <summary>
72+
/// Returns the JSON string presentation of the object
73+
/// </summary>
74+
/// <returns>JSON string presentation of the object</returns>
75+
public virtual string ToJson()
76+
{
77+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
78+
}
79+
80+
/// <summary>
81+
/// Returns true if objects are equal
82+
/// </summary>
83+
/// <param name="input">Object to be compared</param>
84+
/// <returns>Boolean</returns>
85+
public override bool Equals(object input)
86+
{
87+
return this.Equals(input as BinaryDataResult);
88+
}
89+
90+
/// <summary>
91+
/// Returns true if BinaryDataResult instances are equal
92+
/// </summary>
93+
/// <param name="input">Instance of BinaryDataResult to be compared</param>
94+
/// <returns>Boolean</returns>
95+
public bool Equals(BinaryDataResult input)
96+
{
97+
if (input == null)
98+
return false;
99+
100+
return
101+
(
102+
this.NFields == input.NFields ||
103+
(this.NFields != null &&
104+
this.NFields.Equals(input.NFields))
105+
) &&
106+
(
107+
this.PArrayFields == input.PArrayFields ||
108+
this.PArrayFields != null &&
109+
input.PArrayFields != null &&
110+
this.PArrayFields.SequenceEqual(input.PArrayFields)
111+
);
112+
}
113+
114+
/// <summary>
115+
/// Gets the hash code
116+
/// </summary>
117+
/// <returns>Hash code</returns>
118+
public override int GetHashCode()
119+
{
120+
unchecked // Overflow is fine, just wrap
121+
{
122+
int hashCode = 41;
123+
if (this.NFields != null)
124+
hashCode = hashCode * 59 + this.NFields.GetHashCode();
125+
if (this.PArrayFields != null)
126+
hashCode = hashCode * 59 + this.PArrayFields.GetHashCode();
127+
return hashCode;
128+
}
129+
}
130+
131+
/// <summary>
132+
/// To validate all properties of the instance
133+
/// </summary>
134+
/// <param name="validationContext">Validation context</param>
135+
/// <returns>Validation Result</returns>
136+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
137+
{
138+
yield break;
139+
}
140+
}
141+
142+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
/// OriginalGraphicsResult
29+
/// </summary>
30+
[DataContract]
31+
public partial class OriginalGraphicsResult : IEquatable<OriginalGraphicsResult>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="OriginalGraphicsResult" /> class.
35+
/// </summary>
36+
/// <param name="nFields">Count of array fields.</param>
37+
/// <param name="pArrayFields">pArrayFields.</param>
38+
public OriginalGraphicsResult(int nFields = default(int), List<TOriginalRFIDGraphics> pArrayFields = default(List<TOriginalRFIDGraphics>))
39+
{
40+
this.NFields = nFields;
41+
this.PArrayFields = pArrayFields;
42+
}
43+
44+
/// <summary>
45+
/// Count of array fields
46+
/// </summary>
47+
/// <value>Count of array fields</value>
48+
[DataMember(Name="nFields", EmitDefaultValue=false)]
49+
public int NFields { get; set; }
50+
51+
/// <summary>
52+
/// Gets or Sets PArrayFields
53+
/// </summary>
54+
[DataMember(Name="pArrayFields", EmitDefaultValue=false)]
55+
public List<TOriginalRFIDGraphics> PArrayFields { get; set; }
56+
57+
/// <summary>
58+
/// Returns the string presentation of the object
59+
/// </summary>
60+
/// <returns>String presentation of the object</returns>
61+
public override string ToString()
62+
{
63+
var sb = new StringBuilder();
64+
sb.Append("class OriginalGraphicsResult {\n");
65+
sb.Append(" NFields: ").Append(NFields).Append("\n");
66+
sb.Append(" PArrayFields: ").Append(PArrayFields).Append("\n");
67+
sb.Append("}\n");
68+
return sb.ToString();
69+
}
70+
71+
/// <summary>
72+
/// Returns the JSON string presentation of the object
73+
/// </summary>
74+
/// <returns>JSON string presentation of the object</returns>
75+
public virtual string ToJson()
76+
{
77+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
78+
}
79+
80+
/// <summary>
81+
/// Returns true if objects are equal
82+
/// </summary>
83+
/// <param name="input">Object to be compared</param>
84+
/// <returns>Boolean</returns>
85+
public override bool Equals(object input)
86+
{
87+
return this.Equals(input as OriginalGraphicsResult);
88+
}
89+
90+
/// <summary>
91+
/// Returns true if OriginalGraphicsResult instances are equal
92+
/// </summary>
93+
/// <param name="input">Instance of OriginalGraphicsResult to be compared</param>
94+
/// <returns>Boolean</returns>
95+
public bool Equals(OriginalGraphicsResult input)
96+
{
97+
if (input == null)
98+
return false;
99+
100+
return
101+
(
102+
this.NFields == input.NFields ||
103+
(this.NFields != null &&
104+
this.NFields.Equals(input.NFields))
105+
) &&
106+
(
107+
this.PArrayFields == input.PArrayFields ||
108+
this.PArrayFields != null &&
109+
input.PArrayFields != null &&
110+
this.PArrayFields.SequenceEqual(input.PArrayFields)
111+
);
112+
}
113+
114+
/// <summary>
115+
/// Gets the hash code
116+
/// </summary>
117+
/// <returns>Hash code</returns>
118+
public override int GetHashCode()
119+
{
120+
unchecked // Overflow is fine, just wrap
121+
{
122+
int hashCode = 41;
123+
if (this.NFields != null)
124+
hashCode = hashCode * 59 + this.NFields.GetHashCode();
125+
if (this.PArrayFields != null)
126+
hashCode = hashCode * 59 + this.PArrayFields.GetHashCode();
127+
return hashCode;
128+
}
129+
}
130+
131+
/// <summary>
132+
/// To validate all properties of the instance
133+
/// </summary>
134+
/// <param name="validationContext">Validation context</param>
135+
/// <returns>Validation Result</returns>
136+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
137+
{
138+
yield break;
139+
}
140+
}
141+
142+
}

0 commit comments

Comments
 (0)