2020-02-04 00:49:27 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2022-01-22 14:40:05 +00:00
|
|
|
using System.Collections.Generic;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Globalization
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-04 00:49:27 +00:00
|
|
|
/// Class CultureDto.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public class CultureDto
|
|
|
|
{
|
2022-01-22 14:40:05 +00:00
|
|
|
public CultureDto(string name, string displayName, string twoLetterISOLanguageName, IReadOnlyList<string> threeLetterISOLanguageNames)
|
2021-02-20 22:13:04 +00:00
|
|
|
{
|
2022-01-22 14:40:05 +00:00
|
|
|
Name = name;
|
|
|
|
DisplayName = displayName;
|
|
|
|
TwoLetterISOLanguageName = twoLetterISOLanguageName;
|
|
|
|
ThreeLetterISOLanguageNames = threeLetterISOLanguageNames;
|
2021-02-20 22:13:04 +00:00
|
|
|
}
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
2022-01-22 14:40:05 +00:00
|
|
|
/// Gets the name.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
2022-01-22 14:40:05 +00:00
|
|
|
public string Name { get; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2022-01-22 14:40:05 +00:00
|
|
|
/// Gets the display name.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The display name.</value>
|
2022-01-22 14:40:05 +00:00
|
|
|
public string DisplayName { get; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2022-01-22 14:40:05 +00:00
|
|
|
/// Gets the name of the two letter ISO language.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The name of the two letter ISO language.</value>
|
2022-01-22 14:40:05 +00:00
|
|
|
public string TwoLetterISOLanguageName { get; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
2021-02-20 22:13:04 +00:00
|
|
|
/// Gets the name of the three letter ISO language.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
/// <value>The name of the three letter ISO language.</value>
|
2022-01-22 14:40:05 +00:00
|
|
|
public string? ThreeLetterISOLanguageName
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
var vals = ThreeLetterISOLanguageNames;
|
2022-01-22 14:40:05 +00:00
|
|
|
if (vals.Count > 0)
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
|
|
|
return vals[0];
|
|
|
|
}
|
2019-08-16 15:31:47 +00:00
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-22 14:40:05 +00:00
|
|
|
public IReadOnlyList<string> ThreeLetterISOLanguageNames { get; }
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|