Show / Hide Table of Contents

Class NintendoSwitchFactory

Factory class responsible to create NintendoSwitch devices.

Inheritance
System.Object
DeviceFactoryBase
NintendoSwitchFactory
Implements
IDeviceFactory
Inherited Members
DeviceFactoryBase.DeviceTypeName
DeviceFactoryBase.DeviceTypeAliases
DeviceFactoryBase.DeviceTypeDisplayName
DeviceFactoryBase.IconUri
DeviceFactoryBase.Events
DeviceFactoryBase.Logger
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 Source

NintendoSwitchFactory(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 Source

FactoryDeviceDisplayName

The device type display name for this factory.

Declaration
public const string FactoryDeviceDisplayName = "NintendoSwitch"
Field Value
Type Description
System.String
View Source

FactoryDeviceName

The device type name for this factory.

Declaration
public const string FactoryDeviceName = "NintendoSwitch"
Field Value
Type Description
System.String

Methods

View Source

CreateDeviceInstance(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.

Overrides
DeviceFactoryBase.CreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)

Implements

IDeviceFactory
  • View Source
In This Article
Back to top Generated by DocFX