| | 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.Search.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 SplitSkillLanguage. |
| | 20 | | /// </summary> |
| | 21 | | [JsonConverter(typeof(StringEnumConverter))] |
| | 22 | | public enum SplitSkillLanguage |
| | 23 | | { |
| | 24 | | [EnumMember(Value = "da")] |
| | 25 | | Da, |
| | 26 | | [EnumMember(Value = "de")] |
| | 27 | | De, |
| | 28 | | [EnumMember(Value = "en")] |
| | 29 | | En, |
| | 30 | | [EnumMember(Value = "es")] |
| | 31 | | Es, |
| | 32 | | [EnumMember(Value = "fi")] |
| | 33 | | Fi, |
| | 34 | | [EnumMember(Value = "fr")] |
| | 35 | | Fr, |
| | 36 | | [EnumMember(Value = "it")] |
| | 37 | | It, |
| | 38 | | [EnumMember(Value = "ko")] |
| | 39 | | Ko, |
| | 40 | | [EnumMember(Value = "pt")] |
| | 41 | | Pt |
| | 42 | | } |
| | 43 | | internal static class SplitSkillLanguageEnumExtension |
| | 44 | | { |
| | 45 | | internal static string ToSerializedValue(this SplitSkillLanguage? value) |
| | 46 | | { |
| 0 | 47 | | return value == null ? null : ((SplitSkillLanguage)value).ToSerializedValue(); |
| | 48 | | } |
| | 49 | |
|
| | 50 | | internal static string ToSerializedValue(this SplitSkillLanguage value) |
| | 51 | | { |
| | 52 | | switch( value ) |
| | 53 | | { |
| | 54 | | case SplitSkillLanguage.Da: |
| 0 | 55 | | return "da"; |
| | 56 | | case SplitSkillLanguage.De: |
| 0 | 57 | | return "de"; |
| | 58 | | case SplitSkillLanguage.En: |
| 0 | 59 | | return "en"; |
| | 60 | | case SplitSkillLanguage.Es: |
| 0 | 61 | | return "es"; |
| | 62 | | case SplitSkillLanguage.Fi: |
| 0 | 63 | | return "fi"; |
| | 64 | | case SplitSkillLanguage.Fr: |
| 0 | 65 | | return "fr"; |
| | 66 | | case SplitSkillLanguage.It: |
| 0 | 67 | | return "it"; |
| | 68 | | case SplitSkillLanguage.Ko: |
| 0 | 69 | | return "ko"; |
| | 70 | | case SplitSkillLanguage.Pt: |
| 0 | 71 | | return "pt"; |
| | 72 | | } |
| 0 | 73 | | return null; |
| | 74 | | } |
| | 75 | |
|
| | 76 | | internal static SplitSkillLanguage? ParseSplitSkillLanguage(this string value) |
| | 77 | | { |
| | 78 | | switch( value ) |
| | 79 | | { |
| | 80 | | case "da": |
| 0 | 81 | | return SplitSkillLanguage.Da; |
| | 82 | | case "de": |
| 0 | 83 | | return SplitSkillLanguage.De; |
| | 84 | | case "en": |
| 0 | 85 | | return SplitSkillLanguage.En; |
| | 86 | | case "es": |
| 0 | 87 | | return SplitSkillLanguage.Es; |
| | 88 | | case "fi": |
| 0 | 89 | | return SplitSkillLanguage.Fi; |
| | 90 | | case "fr": |
| 0 | 91 | | return SplitSkillLanguage.Fr; |
| | 92 | | case "it": |
| 0 | 93 | | return SplitSkillLanguage.It; |
| | 94 | | case "ko": |
| 0 | 95 | | return SplitSkillLanguage.Ko; |
| | 96 | | case "pt": |
| 0 | 97 | | return SplitSkillLanguage.Pt; |
| | 98 | | } |
| 0 | 99 | | return null; |
| | 100 | | } |
| | 101 | | } |
| | 102 | | } |