Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TESTING UPDATED OPEN API #140

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 58 additions & 9 deletions src/Regula.DocumentReader.WebClient/Model/AreaArray.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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: 7.2.0
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -33,24 +33,65 @@ public partial class AreaArray : IEquatable<AreaArray>, IValidatableObject
/// <summary>
/// Initializes a new instance of the <see cref="AreaArray" /> class.
/// </summary>
/// <param name="list">list.</param>
/// <param name="points">points.</param>
public AreaArray(List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
[JsonConstructorAttribute]
protected AreaArray() { }
/// <summary>
/// Initializes a new instance of the <see cref="AreaArray" /> class.
/// </summary>
/// <param name="count">Number of elements in List and Points (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaArray(decimal count = default(decimal), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
{
this.List = list;
this.Points = points;
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AreaArray and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
throw new InvalidDataException("list is a required property for AreaArray and cannot be null");
}
else
{
this.List = list;
}

// to ensure "points" is required (not null)
if (points == null)
{
throw new InvalidDataException("points is a required property for AreaArray and cannot be null");
}
else
{
this.Points = points;
}

}

/// <summary>
/// Number of elements in List and Points
/// </summary>
/// <value>Number of elements in List and Points</value>
[DataMember(Name="Count", EmitDefaultValue=true)]
public decimal Count { get; set; }

/// <summary>
/// Gets or Sets List
/// </summary>
[DataMember(Name="List", EmitDefaultValue=false)]
[DataMember(Name="List", EmitDefaultValue=true)]
public List<RectangleCoordinates> List { get; set; }

/// <summary>
/// Gets or Sets Points
/// </summary>
[DataMember(Name="Points", EmitDefaultValue=false)]
[DataMember(Name="Points", EmitDefaultValue=true)]
public List<PointArray> Points { get; set; }

/// <summary>
Expand All @@ -61,6 +102,7 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AreaArray {\n");
sb.Append(" Count: ").Append(Count).Append("\n");
sb.Append(" List: ").Append(List).Append("\n");
sb.Append(" Points: ").Append(Points).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -97,6 +139,11 @@ public bool Equals(AreaArray input)
return false;

return
(
this.Count == input.Count ||
(this.Count != null &&
this.Count.Equals(input.Count))
) &&
(
this.List == input.List ||
this.List != null &&
Expand All @@ -120,6 +167,8 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Count != null)
hashCode = hashCode * 59 + this.Count.GetHashCode();
if (this.List != null)
hashCode = hashCode * 59 + this.List.GetHashCode();
if (this.Points != null)
Expand Down
54 changes: 43 additions & 11 deletions src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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: 7.2.0
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -33,32 +33,64 @@ public partial class AreaContainer : IEquatable<AreaContainer>, IValidatableObj
/// <summary>
/// Initializes a new instance of the <see cref="AreaContainer" /> class.
/// </summary>
/// <param name="count">count.</param>
/// <param name="list">list.</param>
/// <param name="points">points.</param>
[JsonConstructorAttribute]
protected AreaContainer() { }
/// <summary>
/// Initializes a new instance of the <see cref="AreaContainer" /> class.
/// </summary>
/// <param name="count">count (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaContainer(int count = default(int), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointsContainer> points = default(List<PointsContainer>))
{
this.Count = count;
this.List = list;
this.Points = points;
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AreaContainer and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
throw new InvalidDataException("list is a required property for AreaContainer and cannot be null");
}
else
{
this.List = list;
}

// to ensure "points" is required (not null)
if (points == null)
{
throw new InvalidDataException("points is a required property for AreaContainer and cannot be null");
}
else
{
this.Points = points;
}

}

/// <summary>
/// Gets or Sets Count
/// </summary>
[DataMember(Name="Count", EmitDefaultValue=false)]
[DataMember(Name="Count", EmitDefaultValue=true)]
public int Count { get; set; }

/// <summary>
/// Gets or Sets List
/// </summary>
[DataMember(Name="List", EmitDefaultValue=false)]
[DataMember(Name="List", EmitDefaultValue=true)]
public List<RectangleCoordinates> List { get; set; }

/// <summary>
/// Gets or Sets Points
/// </summary>
[DataMember(Name="Points", EmitDefaultValue=false)]
[DataMember(Name="Points", EmitDefaultValue=true)]
public List<PointsContainer> Points { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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: 7.2.0
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -38,10 +38,20 @@ protected AuthenticityCheckList() { }
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticityCheckList" /> class.
/// </summary>
/// <param name="count">Count of items in List.</param>
/// <param name="count">Count of items in List (required).</param>
/// <param name="list">Authenticity Check (required).</param>
public AuthenticityCheckList(int count = default(int), List<AuthenticityCheckResult> list = default(List<AuthenticityCheckResult>))
{
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AuthenticityCheckList and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
Expand All @@ -52,14 +62,13 @@ protected AuthenticityCheckList() { }
this.List = list;
}

this.Count = count;
}

/// <summary>
/// Count of items in List
/// </summary>
/// <value>Count of items in List</value>
[DataMember(Name="Count", EmitDefaultValue=false)]
[DataMember(Name="Count", EmitDefaultValue=true)]
public int Count { get; set; }

/// <summary>
Expand Down
Loading
Loading