| | 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 Newtonsoft.Json.Converters; |
| | 15 | | using System.Runtime; |
| | 16 | | using System.Runtime.Serialization; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Defines values for BlurLevel. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum BlurLevel |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "Low")] |
| | 25 | | Low, |
| | 26 | | [EnumMember(Value = "Medium")] |
| | 27 | | Medium, |
| | 28 | | [EnumMember(Value = "High")] |
| | 29 | | High |
| | 30 | | } |
| | 31 | | internal static class BlurLevelEnumExtension |
| | 32 | | { |
| | 33 | | internal static string ToSerializedValue(this BlurLevel? value) |
| | 34 | | { |
| 0 | 35 | | return value == null ? null : ((BlurLevel)value).ToSerializedValue(); |
| | 36 | | } |
| | 37 | |
|
| | 38 | | internal static string ToSerializedValue(this BlurLevel value) |
| | 39 | | { |
| | 40 | | switch( value ) |
| | 41 | | { |
| | 42 | | case BlurLevel.Low: |
| 0 | 43 | | return "Low"; |
| | 44 | | case BlurLevel.Medium: |
| 0 | 45 | | return "Medium"; |
| | 46 | | case BlurLevel.High: |
| 0 | 47 | | return "High"; |
| | 48 | | } |
| 0 | 49 | | return null; |
| | 50 | | } |
| | 51 | |
|
| | 52 | | internal static BlurLevel? ParseBlurLevel(this string value) |
| | 53 | | { |
| | 54 | | switch( value ) |
| | 55 | | { |
| | 56 | | case "Low": |
| 0 | 57 | | return BlurLevel.Low; |
| | 58 | | case "Medium": |
| 0 | 59 | | return BlurLevel.Medium; |
| | 60 | | case "High": |
| 0 | 61 | | return BlurLevel.High; |
| | 62 | | } |
| 0 | 63 | | return null; |
| | 64 | | } |
| | 65 | | } |
| | 66 | | } |