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