Class SsdpDevice
Base class representing the common details of a (root or embedded) device, either to be published or that has been located.
Inherited Members
Namespace: Rssdp
Assembly: cs.temp.dll.dll
Syntax
public abstract class SsdpDevice
Remarks
Do not derive new types directly from this class. New device classes should derive from either SsdpRootDevice or SsdpEmbeddedDevice.
Constructors
Name | Description |
---|---|
SsdpDevice() | Derived type constructor, allows constructing a device with no parent. Should only be used from derived types that are or inherit from SsdpRootDevice. |
SsdpDevice(String) | Deserialisation constructor. |
Properties
Name | Description |
---|---|
CustomProperties | Returns a dictionary of SsdpDeviceProperty objects keyed by FullName. Each value represents a custom property in the device description document. |
CustomResponseHeaders | Provides a list of additional information to provide about this device in search response and notification messages. |
Devices | Returns a read-only enumerable set of SsdpDevice objects representing children of this device. Child devices are optional. |
DeviceType | Sets or returns the core device type (not including namespace, version etc.). Required. |
DeviceTypeNamespace | Sets or returns the namespace for the DeviceType of this device. Optional, but defaults to UPnP schema so should be changed if DeviceType is not a UPnP device type. |
DeviceVersion | Sets or returns the version of the device type. Optional, defaults to 1. |
FriendlyName | Sets or returns a friendly/display name for this device on the network. Something the user can identify the device/instance by, i.e Lounge Main Light. Required. |
FullDeviceType | Returns the full device type string. |
Icons | Returns a list of icons (images) that can be used to display this device. Optional, but recommended you provide at least one at 48x48 pixels. |
Manufacturer | Sets or returns the name of the manufacturer of this device. Required. |
ManufacturerUrl | Sets or returns a URL to the manufacturers web site. Optional. |
ModelDescription | Sets or returns a description of this device model. Recommended. |
ModelName | Sets or returns the name of this model. Required. |
ModelNumber | Sets or returns the number of this model. Recommended. |
ModelUrl | Sets or returns a URL to a web page with details of this device model. Optional. |
PresentationUrl | Sets or returns the URL to a web page that can be used to configure/manager/use the device. Recommended. |
SerialNumber | Sets or returns the serial number for this device. Recommended. |
Services | Returns a read-only enumerable set of SsdpService objects representing services associated with this device. |
Udn | Returns (or sets*) a unique device name for this device. Optional, not recommended to be explicitly set. |
Upc | Sets or returns the universal product code of the device, if any. Optional. |
Uuid | Sets or returns the universally unique identifier for this device (without the uuid: prefix). Required. |
Methods
Name | Description |
---|---|
AddDevice(SsdpEmbeddedDevice) | Adds a child device to the Devices collection. |
AddService(SsdpService) | Adds a service to the Services collection. |
OnDeviceAdded(SsdpEmbeddedDevice) | Raises the DeviceAdded event. |
OnDeviceRemoved(SsdpEmbeddedDevice) | Raises the DeviceRemoved event. |
OnServiceAdded(SsdpService) | Raises the ServiceAdded event. |
OnServiceRemoved(SsdpService) | Raises the ServiceRemoved event. |
RemoveDevice(SsdpEmbeddedDevice) | Removes a child device from the Devices collection. |
RemoveService(SsdpService) | Removes a service from the Services collection. |
StringToUri(String) | Converts a string to a |
WriteDeviceDescriptionXml(XmlWriter, SsdpDevice) | Writes this device to the specified |
Events
Name | Description |
---|---|
DeviceAdded | Raised when a new child device is added. |
DeviceRemoved | Raised when a child device is removed. |
ServiceAdded | Raised when a new service is added. |
ServiceRemoved | Raised when a service is removed. |