aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Globalization/CultureDto.cs
blob: 5246f87d9228ebc66f0887341b629683493e41c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#nullable disable
#pragma warning disable CS1591

using System;

namespace MediaBrowser.Model.Globalization
{
    /// <summary>
    /// Class CultureDto.
    /// </summary>
    public class CultureDto
    {
        public CultureDto()
        {
            ThreeLetterISOLanguageNames = Array.Empty<string>();
        }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the display name.
        /// </summary>
        /// <value>The display name.</value>
        public string DisplayName { get; set; }

        /// <summary>
        /// Gets or sets the name of the two letter ISO language.
        /// </summary>
        /// <value>The name of the two letter ISO language.</value>
        public string TwoLetterISOLanguageName { get; set; }

        /// <summary>
        /// Gets the name of the three letter ISO language.
        /// </summary>
        /// <value>The name of the three letter ISO language.</value>
        public string ThreeLetterISOLanguageName
        {
            get
            {
                var vals = ThreeLetterISOLanguageNames;
                if (vals.Length > 0)
                {
                    return vals[0];
                }

                return null;
            }
        }

        public string[] ThreeLetterISOLanguageNames { get; set; }
    }
}