You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jellyfin/MediaBrowser.Model/Globalization/CultureDto.cs

59 lines
1.6 KiB

#pragma warning disable CS1591
using System.Collections.Generic;
6 years ago
namespace MediaBrowser.Model.Globalization
{
/// <summary>
/// Class CultureDto.
6 years ago
/// </summary>
public class CultureDto
{
public CultureDto(string name, string displayName, string twoLetterISOLanguageName, IReadOnlyList<string> threeLetterISOLanguageNames)
{
Name = name;
DisplayName = displayName;
TwoLetterISOLanguageName = twoLetterISOLanguageName;
ThreeLetterISOLanguageNames = threeLetterISOLanguageNames;
}
6 years ago
/// <summary>
/// Gets the name.
6 years ago
/// </summary>
/// <value>The name.</value>
public string Name { get; }
6 years ago
/// <summary>
/// Gets the display name.
6 years ago
/// </summary>
/// <value>The display name.</value>
public string DisplayName { get; }
6 years ago
/// <summary>
/// Gets the name of the two letter ISO language.
6 years ago
/// </summary>
/// <value>The name of the two letter ISO language.</value>
public string TwoLetterISOLanguageName { get; }
6 years ago
/// <summary>
/// Gets the name of the three letter ISO language.
6 years ago
/// </summary>
/// <value>The name of the three letter ISO language.</value>
public string? ThreeLetterISOLanguageName
6 years ago
{
get
{
var vals = ThreeLetterISOLanguageNames;
if (vals.Count > 0)
6 years ago
{
return vals[0];
}
6 years ago
return null;
}
}
public IReadOnlyList<string> ThreeLetterISOLanguageNames { get; }
6 years ago
}
}