| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Response body for find similar face operation. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class SimilarFace |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the SimilarFace class. |
| | | 23 | | /// </summary> |
| | 12 | 24 | | public SimilarFace() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 12 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the SimilarFace class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="confidence">Similarity confidence of the candidate |
| | | 33 | | /// face. The higher confidence, the more similar. Range between |
| | | 34 | | /// [0,1].</param> |
| | | 35 | | /// <param name="faceId">FaceId of candidate face when find by faceIds. |
| | | 36 | | /// faceId is created by Face - Detect and will expire 24 hours after |
| | | 37 | | /// the detection call</param> |
| | | 38 | | /// <param name="persistedFaceId">PersistedFaceId of candidate face |
| | | 39 | | /// when find by faceListId. persistedFaceId in face list is persisted |
| | | 40 | | /// and will not expire. As showed in below response</param> |
| | 0 | 41 | | public SimilarFace(double confidence, System.Guid? faceId = default(System.Guid?), System.Guid? persistedFaceId |
| | | 42 | | { |
| | 0 | 43 | | FaceId = faceId; |
| | 0 | 44 | | PersistedFaceId = persistedFaceId; |
| | 0 | 45 | | Confidence = confidence; |
| | | 46 | | CustomInit(); |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | | 51 | | /// </summary> |
| | | 52 | | partial void CustomInit(); |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets faceId of candidate face when find by faceIds. faceId |
| | | 56 | | /// is created by Face - Detect and will expire 24 hours after the |
| | | 57 | | /// detection call |
| | | 58 | | /// </summary> |
| | | 59 | | [JsonProperty(PropertyName = "faceId")] |
| | 6 | 60 | | public System.Guid? FaceId { get; set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets or sets persistedFaceId of candidate face when find by |
| | | 64 | | /// faceListId. persistedFaceId in face list is persisted and will not |
| | | 65 | | /// expire. As showed in below response |
| | | 66 | | /// </summary> |
| | | 67 | | [JsonProperty(PropertyName = "persistedFaceId")] |
| | 12 | 68 | | public System.Guid? PersistedFaceId { get; set; } |
| | | 69 | | |
| | | 70 | | /// <summary> |
| | | 71 | | /// Gets or sets similarity confidence of the candidate face. The |
| | | 72 | | /// higher confidence, the more similar. Range between [0,1]. |
| | | 73 | | /// </summary> |
| | | 74 | | [JsonProperty(PropertyName = "confidence")] |
| | 18 | 75 | | public double Confidence { get; set; } |
| | | 76 | | |
| | | 77 | | /// <summary> |
| | | 78 | | /// Validate the object. |
| | | 79 | | /// </summary> |
| | | 80 | | /// <exception cref="Rest.ValidationException"> |
| | | 81 | | /// Thrown if validation fails |
| | | 82 | | /// </exception> |
| | | 83 | | public virtual void Validate() |
| | | 84 | | { |
| | | 85 | | //Nothing to validate |
| | 0 | 86 | | } |
| | | 87 | | } |
| | | 88 | | } |