DeviceIcon.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System.Globalization;
  2. namespace Emby.Dlna.Common
  3. {
  4. /// <summary>
  5. /// Defines the <see cref="DeviceIcon" />.
  6. /// </summary>
  7. public class DeviceIcon
  8. {
  9. /// <summary>
  10. /// Gets or sets the Url.
  11. /// </summary>
  12. public string Url { get; set; } = string.Empty;
  13. /// <summary>
  14. /// Gets or sets the MimeType.
  15. /// </summary>
  16. public string MimeType { get; set; } = string.Empty;
  17. /// <summary>
  18. /// Gets or sets the Width.
  19. /// </summary>
  20. public int Width { get; set; }
  21. /// <summary>
  22. /// Gets or sets the Height.
  23. /// </summary>
  24. public int Height { get; set; }
  25. /// <summary>
  26. /// Gets or sets the Depth.
  27. /// </summary>
  28. public string Depth { get; set; } = string.Empty;
  29. /// <inheritdoc />
  30. public override string ToString()
  31. {
  32. return string.Format(CultureInfo.InvariantCulture, "{0}x{1}", Height, Width);
  33. }
  34. }
  35. }