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

Update /healthz endpoint #81

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
247 changes: 247 additions & 0 deletions src/Regula.FaceSDK.WebClient/Model/DeviceInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
/*
* Regula Face SDK Web API
*
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.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.FaceSDK.WebClient.Client.OpenAPIDateConverter;

namespace Regula.FaceSDK.WebClient.Model
{
/// <summary>
/// DeviceInfo
/// </summary>
[DataContract]
public partial class DeviceInfo : IEquatable<DeviceInfo>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="DeviceInfo" /> class.
/// </summary>
[JsonConstructorAttribute]
protected DeviceInfo() { }
/// <summary>
/// Initializes a new instance of the <see cref="DeviceInfo" /> class.
/// </summary>
/// <param name="app">Application name. (required).</param>
/// <param name="licenseId">Unique license identifier. (required).</param>
/// <param name="licenseSerial">License serial number. (required).</param>
/// <param name="licenseValidUntil">License validity date. (required).</param>
/// <param name="version">Product version. (required).</param>
public DeviceInfo(string app = default(string), string licenseId = default(string), string licenseSerial = default(string), DateTime? licenseValidUntil = default(DateTime?), string version = default(string))
{
// to ensure "app" is required (not null)
if (app == null)
{
throw new InvalidDataException("app is a required property for DeviceInfo and cannot be null");
}
else
{
this.App = app;
}

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

this.LicenseId = licenseId;
// to ensure "licenseSerial" is required (not null)
if (licenseSerial == null)
{
throw new InvalidDataException("licenseSerial is a required property for DeviceInfo and cannot be null");
}
else
{
this.LicenseSerial = licenseSerial;
}

this.LicenseSerial = licenseSerial;
// to ensure "licenseValidUntil" is required (not null)
if (licenseValidUntil == null)
{
throw new InvalidDataException("licenseValidUntil is a required property for DeviceInfo and cannot be null");
}
else
{
this.LicenseValidUntil = licenseValidUntil;
}

this.LicenseValidUntil = licenseValidUntil;
// to ensure "version" is required (not null)
if (version == null)
{
throw new InvalidDataException("version is a required property for DeviceInfo and cannot be null");
}
else
{
this._Version = version;
}

this._Version = version;
}

/// <summary>
/// Application name.
/// </summary>
/// <value>Application name.</value>
[DataMember(Name="app", EmitDefaultValue=true)]
public string App { get; set; }

/// <summary>
/// Unique license identifier.
/// </summary>
/// <value>Unique license identifier.</value>
[DataMember(Name="licenseId", EmitDefaultValue=true)]
public string LicenseId { get; set; }

/// <summary>
/// License serial number.
/// </summary>
/// <value>License serial number.</value>
[DataMember(Name="licenseSerial", EmitDefaultValue=true)]
public string LicenseSerial { get; set; }

/// <summary>
/// License validity date.
/// </summary>
/// <value>License validity date.</value>
[DataMember(Name="licenseValidUntil", EmitDefaultValue=true)]
public DateTime? LicenseValidUntil { get; set; }

/// <summary>
/// Product version.
/// </summary>
/// <value>Product version.</value>
[DataMember(Name="version", EmitDefaultValue=true)]
public string _Version { 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 DeviceInfo {\n");
sb.Append(" App: ").Append(App).Append("\n");
sb.Append(" LicenseId: ").Append(LicenseId).Append("\n");
sb.Append(" LicenseSerial: ").Append(LicenseSerial).Append("\n");
sb.Append(" LicenseValidUntil: ").Append(LicenseValidUntil).Append("\n");
sb.Append(" _Version: ").Append(_Version).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 DeviceInfo);
}

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

return
(
this.App == input.App ||
(this.App != null &&
this.App.Equals(input.App))
) &&
(
this.LicenseId == input.LicenseId ||
(this.LicenseId != null &&
this.LicenseId.Equals(input.LicenseId))
) &&
(
this.LicenseSerial == input.LicenseSerial ||
(this.LicenseSerial != null &&
this.LicenseSerial.Equals(input.LicenseSerial))
) &&
(
this.LicenseValidUntil == input.LicenseValidUntil ||
(this.LicenseValidUntil != null &&
this.LicenseValidUntil.Equals(input.LicenseValidUntil))
) &&
(
this._Version == input._Version ||
(this._Version != null &&
this._Version.Equals(input._Version))
);
}

/// <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.App != null)
hashCode = hashCode * 59 + this.App.GetHashCode();
if (this.LicenseId != null)
hashCode = hashCode * 59 + this.LicenseId.GetHashCode();
if (this.LicenseSerial != null)
hashCode = hashCode * 59 + this.LicenseSerial.GetHashCode();
if (this.LicenseValidUntil != null)
hashCode = hashCode * 59 + this.LicenseValidUntil.GetHashCode();
if (this._Version != null)
hashCode = hashCode * 59 + this._Version.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