Class NintendoSwitchFactory
Factory class responsible to create NintendoSwitch devices.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Devices
Assembly: Phoenix.Devices.Switch.dll
Syntax
public sealed class NintendoSwitchFactory : DeviceFactoryBase, IDeviceFactory
Constructors
View SourceNintendoSwitchFactory(IPhoenixLogger, IEventAggregator, IDeviceCommandManager)
Initializes a new instance of the NintendoSwitchFactory class.
Declaration
public NintendoSwitchFactory(IPhoenixLogger logger, IEventAggregator events, IDeviceCommandManager commandManager)
Parameters
Type | Name | Description |
---|---|---|
IPhoenixLogger | logger | The current logger. |
IEventAggregator | events | The event aggregate service. |
IDeviceCommandManager | commandManager | The IDeviceCommandManager to register a category for this device factory. |
Fields
View SourceFactoryDeviceDisplayName
The device type display name for this factory.
Declaration
public const string FactoryDeviceDisplayName = "NintendoSwitch"
Field Value
Type | Description |
---|---|
System.String |
FactoryDeviceName
The device type name for this factory.
Declaration
public const string FactoryDeviceName = "NintendoSwitch"
Field Value
Type | Description |
---|---|
System.String |
Methods
View SourceCreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)
Creates an instance of the device from an IP Address.
Declaration
public override 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 | Device specific configuration type string. |
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 | The device id. |
Returns
Type | Description |
---|---|
IDevice | The created device. |