| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.VideoSearch.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using Newtonsoft.Json.Converters; |
| | 11 | | using System.Runtime; |
| | 12 | | using System.Runtime.Serialization; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// Defines values for VideoQueryScenario. |
| | 16 | | /// </summary> |
| | 17 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 18 | | public enum VideoQueryScenario |
| | 19 | | { |
| | 20 | | [EnumMember(Value = "List")] |
| | 21 | | List, |
| | 22 | | [EnumMember(Value = "SingleDominantVideo")] |
| | 23 | | SingleDominantVideo |
| | 24 | | } |
| | 25 | | internal static class VideoQueryScenarioEnumExtension |
| | 26 | | { |
| | 27 | | internal static string ToSerializedValue(this VideoQueryScenario? value) |
| | 28 | | { |
| 0 | 29 | | return value == null ? null : ((VideoQueryScenario)value).ToSerializedValue(); |
| | 30 | | } |
| | 31 | |
|
| | 32 | | internal static string ToSerializedValue(this VideoQueryScenario value) |
| | 33 | | { |
| | 34 | | switch( value ) |
| | 35 | | { |
| | 36 | | case VideoQueryScenario.List: |
| 0 | 37 | | return "List"; |
| | 38 | | case VideoQueryScenario.SingleDominantVideo: |
| 0 | 39 | | return "SingleDominantVideo"; |
| | 40 | | } |
| 0 | 41 | | return null; |
| | 42 | | } |
| | 43 | |
|
| | 44 | | internal static VideoQueryScenario? ParseVideoQueryScenario(this string value) |
| | 45 | | { |
| | 46 | | switch( value ) |
| | 47 | | { |
| | 48 | | case "List": |
| 0 | 49 | | return VideoQueryScenario.List; |
| | 50 | | case "SingleDominantVideo": |
| 0 | 51 | | return VideoQueryScenario.SingleDominantVideo; |
| | 52 | | } |
| 0 | 53 | | return null; |
| | 54 | | } |
| | 55 | | } |
| | 56 | | } |