jellyfin/MediaBrowser.Model/Globalization/CultureDto.cs

57 lines
1.4 KiB
C#
Raw Normal View History

#nullable disable
2020-02-03 17:49:27 -07:00
#pragma warning disable CS1591
using System;
2018-12-27 16:27:57 -07:00
namespace MediaBrowser.Model.Globalization
{
/// <summary>
2020-02-03 17:49:27 -07:00
/// Class CultureDto.
2018-12-27 16:27:57 -07:00
/// </summary>
public class CultureDto
{
public CultureDto()
{
ThreeLetterISOLanguageNames = Array.Empty<string>();
}
2018-12-27 16:27:57 -07:00
/// <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.
2018-12-27 16:27:57 -07:00
/// </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];
}
2019-08-16 08:31:47 -07:00
2018-12-27 16:27:57 -07:00
return null;
}
}
public string[] ThreeLetterISOLanguageNames { get; set; }
}
}