aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/SsdpDeviceIcon.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-29 18:22:20 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-29 18:22:20 -0400
commitdca78b13411db96366dddfa0d68bb6d36d28ad14 (patch)
tree7d41e670f1cadec0db9e1ed7115e151da891f7ea /RSSDP/SsdpDeviceIcon.cs
parent597e27d1c6199a40398abb068282711a9cb9db1b (diff)
rework dlna project
Diffstat (limited to 'RSSDP/SsdpDeviceIcon.cs')
-rw-r--r--RSSDP/SsdpDeviceIcon.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/RSSDP/SsdpDeviceIcon.cs b/RSSDP/SsdpDeviceIcon.cs
new file mode 100644
index 000000000..4ffda58ff
--- /dev/null
+++ b/RSSDP/SsdpDeviceIcon.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Rssdp
+{
+ /// <summary>
+ /// Represents an icon published by an <see cref="SsdpDevice"/>.
+ /// </summary>
+ public sealed class SsdpDeviceIcon
+ {
+ /// <summary>
+ /// The mime type for the image data returned by the <see cref="Url"/> property.
+ /// </summary>
+ /// <remarks>
+ /// <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>
+ /// </remarks>
+ /// <seealso cref="Url"/>
+ public string MimeType { get; set; }
+
+ /// <summary>
+ /// The URL that can be called with an HTTP GET command to retrieve the image data.
+ /// </summary>
+ /// <remarks>
+ /// <para>Required. May be relative to base URL. Specified by UPnP vendor. Single URL.</para>
+ /// </remarks>
+ /// <seealso cref="MimeType"/>
+ public Uri Url { get; set; }
+
+ /// <summary>
+ /// The width of the image in pixels.
+ /// </summary>
+ /// <remarks><para>Required, must be greater than zero.</para></remarks>
+ public int Width { get; set; }
+
+ /// <summary>
+ /// The height of the image in pixels.
+ /// </summary>
+ /// <remarks><para>Required, must be greater than zero.</para></remarks>
+ public int Height { get; set; }
+
+ /// <summary>
+ /// The colour depth of the image.
+ /// </summary>
+ /// <remarks><para>Required, must be greater than zero.</para></remarks>
+ public int ColorDepth { get; set; }
+
+ }
+}