SsdpDeviceIcon.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. namespace Rssdp
  6. {
  7. /// <summary>
  8. /// Represents an icon published by an <see cref="SsdpDevice"/>.
  9. /// </summary>
  10. public sealed class SsdpDeviceIcon
  11. {
  12. /// <summary>
  13. /// The mime type for the image data returned by the <see cref="Url"/> property.
  14. /// </summary>
  15. /// <remarks>
  16. /// <para>Required. Icon's MIME type (cf. RFC 2045, 2046, and 2387). Single MIME image type. At least one icon should be of type “image/png” (Portable Network Graphics, see IETF RFC 2083).</para>
  17. /// </remarks>
  18. /// <seealso cref="Url"/>
  19. public string MimeType { get; set; }
  20. /// <summary>
  21. /// The URL that can be called with an HTTP GET command to retrieve the image data.
  22. /// </summary>
  23. /// <remarks>
  24. /// <para>Required. May be relative to base URL. Specified by UPnP vendor. Single URL.</para>
  25. /// </remarks>
  26. /// <seealso cref="MimeType"/>
  27. public Uri Url { get; set; }
  28. /// <summary>
  29. /// The width of the image in pixels.
  30. /// </summary>
  31. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  32. public int Width { get; set; }
  33. /// <summary>
  34. /// The height of the image in pixels.
  35. /// </summary>
  36. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  37. public int Height { get; set; }
  38. /// <summary>
  39. /// The colour depth of the image.
  40. /// </summary>
  41. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  42. public int ColorDepth { get; set; }
  43. }
  44. }