-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathFaceApiSearch.cs
More file actions
104 lines (94 loc) · 4.5 KB
/
FaceApiSearch.cs
File metadata and controls
104 lines (94 loc) · 4.5 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
/*
* 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>
/// A search filter that can be applied if the \"match+search\" mode is enabled. May include limit, threshold, group_ids. If the group_ids are specified, the search is performed only in these groups. Find more information in the <a href=\"https://dev.regulaforensics.com/FaceSDK-web-openapi/#tag/search/operation/search\" target=\"_blank\">OpenAPI documentation</a>.
/// </summary>
[DataContract(Name = "FaceApi_search")]
public partial class FaceApiSearch : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="FaceApiSearch" /> class.
/// </summary>
/// <param name="limit">The maximum number of results to be returned..</param>
/// <param name="threshold">The similarity threshold..</param>
/// <param name="groupIds"> The groups where to conduct the search..</param>
public FaceApiSearch(int limit = default(int), float threshold = default(float), List<string> groupIds = default(List<string>))
{
this.Limit = limit;
this.Threshold = threshold;
this.GroupIds = groupIds;
}
/// <summary>
/// The maximum number of results to be returned.
/// </summary>
/// <value>The maximum number of results to be returned.</value>
[DataMember(Name = "limit", EmitDefaultValue = false)]
public int? Limit { get; set; }
/// <summary>
/// The similarity threshold.
/// </summary>
/// <value>The similarity threshold.</value>
[DataMember(Name = "threshold", EmitDefaultValue = false)]
public float? Threshold { get; set; }
/// <summary>
/// The groups where to conduct the search.
/// </summary>
/// <value> The groups where to conduct the search.</value>
[DataMember(Name = "group_ids", EmitDefaultValue = false)]
public List<string>? GroupIds { 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 FaceApiSearch {\n");
sb.Append(" Limit: ").Append(Limit).Append("\n");
sb.Append(" Threshold: ").Append(Threshold).Append("\n");
sb.Append(" GroupIds: ").Append(GroupIds).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;
}
}
}