| | 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.ComputerVision.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// An object describing whether the image contains adult-oriented content |
| | 18 | | /// and/or is racy. |
| | 19 | | /// </summary> |
| | 20 | | public partial class AdultInfo |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the AdultInfo class. |
| | 24 | | /// </summary> |
| 4 | 25 | | public AdultInfo() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 4 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the AdultInfo class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="isAdultContent">A value indicating if the image |
| | 34 | | /// contains adult-oriented content.</param> |
| | 35 | | /// <param name="isRacyContent">A value indicating if the image is |
| | 36 | | /// racy.</param> |
| | 37 | | /// <param name="isGoryContent">A value indicating if the image is |
| | 38 | | /// gory.</param> |
| | 39 | | /// <param name="adultScore">Score from 0 to 1 that indicates how much |
| | 40 | | /// the content is considered adult-oriented within the image.</param> |
| | 41 | | /// <param name="racyScore">Score from 0 to 1 that indicates how |
| | 42 | | /// suggestive is the image.</param> |
| | 43 | | /// <param name="goreScore">Score from 0 to 1 that indicates how gory |
| | 44 | | /// is the image.</param> |
| 0 | 45 | | public AdultInfo(bool isAdultContent = default(bool), bool isRacyContent = default(bool), bool isGoryContent = d |
| | 46 | | { |
| 0 | 47 | | IsAdultContent = isAdultContent; |
| 0 | 48 | | IsRacyContent = isRacyContent; |
| 0 | 49 | | IsGoryContent = isGoryContent; |
| 0 | 50 | | AdultScore = adultScore; |
| 0 | 51 | | RacyScore = racyScore; |
| 0 | 52 | | GoreScore = goreScore; |
| | 53 | | CustomInit(); |
| 0 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// An initialization method that performs custom operations like setting defaults |
| | 58 | | /// </summary> |
| | 59 | | partial void CustomInit(); |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets a value indicating if the image contains |
| | 63 | | /// adult-oriented content. |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "isAdultContent")] |
| 8 | 66 | | public bool IsAdultContent { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets a value indicating if the image is racy. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "isRacyContent")] |
| 8 | 72 | | public bool IsRacyContent { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets or sets a value indicating if the image is gory. |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "isGoryContent")] |
| 8 | 78 | | public bool IsGoryContent { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets score from 0 to 1 that indicates how much the content |
| | 82 | | /// is considered adult-oriented within the image. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "adultScore")] |
| 8 | 85 | | public double AdultScore { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets score from 0 to 1 that indicates how suggestive is the |
| | 89 | | /// image. |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "racyScore")] |
| 8 | 92 | | public double RacyScore { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Gets or sets score from 0 to 1 that indicates how gory is the |
| | 96 | | /// image. |
| | 97 | | /// </summary> |
| | 98 | | [JsonProperty(PropertyName = "goreScore")] |
| 8 | 99 | | public double GoreScore { get; set; } |
| | 100 | |
|
| | 101 | | } |
| | 102 | | } |