Interface IDeviceFactory
Represents a device factory.
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public interface IDeviceFactory
Properties
View SourceDeviceTypeAliases
Gets the aliases for the device type.
Declaration
IEnumerable<string> DeviceTypeAliases { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
DeviceTypeDisplayName
Gets the display name of the device type.
Declaration
string DeviceTypeDisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
DeviceTypeName
Gets the name of the device type.
Declaration
string DeviceTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
IconUri
Gets a value representing the URI for the device type icon.
Declaration
Uri IconUri { get; }
Property Value
Type | Description |
---|---|
System.Uri |
Methods
View SourceCreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)
Creates an instance of a device from a IP address and id.
Declaration
IDevice CreateDeviceInstance(IPAddress address, string name, string alias, string configType, string configuration, string deviceId, Guid phoenixId)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address | The IP address of the device. |
System.String | name | The name of the device if known. |
System.String | alias | The alias of the device if known. |
System.String | configType | type of configuration |
System.String | configuration | Device specific configuration string. |
System.String | deviceId | The expected device id that will be matched to the id the device provides. |
System.Guid | phoenixId | A specific id to be set for the device. |
Returns
Type | Description |
---|---|
IDevice | The device. |