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

7.1.0-clients-update #103

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
362 changes: 362 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/AuthParams.cs

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/InData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
/*
* 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: 6.9.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// InData
/// </summary>
[DataContract]
public partial class InData : IEquatable<InData>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="InData" /> class.
/// </summary>
/// <param name="rfidSession">rfidSession.</param>
/// <param name="video">video.</param>
/// <param name="images">images.</param>
public InData(InDataRfidSession rfidSession = default(InDataRfidSession), InDataVideo video = default(InDataVideo), List<List> images = default(List<List>))

Check failure on line 39 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments

Check failure on line 39 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments

Check failure on line 39 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments

Check failure on line 39 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments
{
this.RfidSession = rfidSession;
this.Video = video;
this.Images = images;
}

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

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

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

Check failure on line 62 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments

Check failure on line 62 in src/Regula.DocumentReader.WebClient/Model/InData.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

Using the generic type 'List<T>' requires 1 type arguments

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class InData {\n");
sb.Append(" RfidSession: ").Append(RfidSession).Append("\n");
sb.Append(" Video: ").Append(Video).Append("\n");
sb.Append(" Images: ").Append(Images).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>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as InData);
}

/// <summary>
/// Returns true if InData instances are equal
/// </summary>
/// <param name="input">Instance of InData to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(InData input)
{
if (input == null)
return false;

return
(
this.RfidSession == input.RfidSession ||
(this.RfidSession != null &&
this.RfidSession.Equals(input.RfidSession))
) &&
(
this.Video == input.Video ||
(this.Video != null &&
this.Video.Equals(input.Video))
) &&
(
this.Images == input.Images ||
this.Images != null &&
input.Images != null &&
this.Images.SequenceEqual(input.Images)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.RfidSession != null)
hashCode = hashCode * 59 + this.RfidSession.GetHashCode();
if (this.Video != null)
hashCode = hashCode * 59 + this.Video.GetHashCode();
if (this.Images != null)
hashCode = hashCode * 59 + this.Images.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
125 changes: 125 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/InDataRfidSession.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/*
* 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: 6.9.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// InDataRfidSession
/// </summary>
[DataContract]
public partial class InDataRfidSession : IEquatable<InDataRfidSession>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="InDataRfidSession" /> class.
/// </summary>
/// <param name="url">Image url.</param>
public InDataRfidSession(string url = default(string))
{
this.Url = url;
}

/// <summary>
/// Image url
/// </summary>
/// <value>Image url</value>
[DataMember(Name="url", EmitDefaultValue=false)]
public string Url { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class InDataRfidSession {\n");
sb.Append(" Url: ").Append(Url).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>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as InDataRfidSession);
}

/// <summary>
/// Returns true if InDataRfidSession instances are equal
/// </summary>
/// <param name="input">Instance of InDataRfidSession to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(InDataRfidSession input)
{
if (input == null)
return false;

return
(
this.Url == input.Url ||
(this.Url != null &&
this.Url.Equals(input.Url))
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Url != null)
hashCode = hashCode * 59 + this.Url.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading
Loading