SsdpDeviceIcon.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Rssdp
  7. {
  8. /// <summary>
  9. /// Represents an icon published by an <see cref="SsdpDevice"/>.
  10. /// </summary>
  11. public sealed class SsdpDeviceIcon
  12. {
  13. /// <summary>
  14. /// The mime type for the image data returned by the <see cref="Url"/> property.
  15. /// </summary>
  16. /// <remarks>
  17. /// <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>
  18. /// </remarks>
  19. /// <seealso cref="Url"/>
  20. public string MimeType { get; set; }
  21. /// <summary>
  22. /// The URL that can be called with an HTTP GET command to retrieve the image data.
  23. /// </summary>
  24. /// <remarks>
  25. /// <para>Required. May be relative to base URL. Specified by UPnP vendor. Single URL.</para>
  26. /// </remarks>
  27. /// <seealso cref="MimeType"/>
  28. public Uri Url { get; set; }
  29. /// <summary>
  30. /// The width of the image in pixels.
  31. /// </summary>
  32. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  33. public int Width { get; set; }
  34. /// <summary>
  35. /// The height of the image in pixels.
  36. /// </summary>
  37. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  38. public int Height { get; set; }
  39. /// <summary>
  40. /// The colour depth of the image.
  41. /// </summary>
  42. /// <remarks><para>Required, must be greater than zero.</para></remarks>
  43. public int ColorDepth { get; set; }
  44. }
  45. }