2020-01-22 20:00:07 +00:00
|
|
|
using System.Globalization;
|
2019-01-13 19:54:44 +00:00
|
|
|
|
2016-10-29 22:34:54 +00:00
|
|
|
namespace Emby.Dlna.Common
|
2016-10-29 22:22:20 +00:00
|
|
|
{
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Defines the <see cref="DeviceIcon" />.
|
|
|
|
/// </summary>
|
2016-10-29 22:22:20 +00:00
|
|
|
public class DeviceIcon
|
|
|
|
{
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the Url.
|
|
|
|
/// </summary>
|
|
|
|
public string Url { get; set; } = string.Empty;
|
2016-10-29 22:22:20 +00:00
|
|
|
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the MimeType.
|
|
|
|
/// </summary>
|
|
|
|
public string MimeType { get; set; } = string.Empty;
|
2016-10-29 22:22:20 +00:00
|
|
|
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the Width.
|
|
|
|
/// </summary>
|
2016-10-29 22:22:20 +00:00
|
|
|
public int Width { get; set; }
|
|
|
|
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the Height.
|
|
|
|
/// </summary>
|
2016-10-29 22:22:20 +00:00
|
|
|
public int Height { get; set; }
|
|
|
|
|
2020-09-13 12:49:11 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the Depth.
|
|
|
|
/// </summary>
|
|
|
|
public string Depth { get; set; } = string.Empty;
|
2016-10-29 22:22:20 +00:00
|
|
|
|
2020-01-22 20:00:07 +00:00
|
|
|
/// <inheritdoc />
|
2016-10-29 22:22:20 +00:00
|
|
|
public override string ToString()
|
|
|
|
{
|
2020-09-13 12:49:11 +00:00
|
|
|
return string.Format(CultureInfo.InvariantCulture, "{0}x{1}", Height, Width);
|
2016-10-29 22:22:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|