Class GameDevice
A class that implements the IGameDevice interface generically.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class GameDevice : IGameDevice
Constructors
View SourceGameDevice(IDevice)
Initializes a new instance of the GameDevice class.
Declaration
public GameDevice(IDevice device)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The IDevice to convert to a GameDevice. |
See Also
Properties
View SourceAlias
Gets or sets a user defined alias for the device.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
string |
AttachedObjectModel
Gets or sets the game object model that is attached to this device.
Declaration
public object AttachedObjectModel { get; set; }
Property Value
Type | Description |
---|---|
object |
Configuration
Gets or sets the configuration string for this device.
Declaration
public string Configuration { get; set; }
Property Value
Type | Description |
---|---|
string |
DeviceImplementation
Gets the underlying device implementation.
Declaration
public object DeviceImplementation { get; }
Property Value
Type | Description |
---|---|
object |
DeviceTypeName
Gets the name of the device type.
Declaration
public string DeviceTypeName { get; }
Property Value
Type | Description |
---|---|
string |
DisplayName
Gets the display name for UI and logging. This is the Name if valid or the IPAddress.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
string |
DisplayPrefix
Gets or sets the DisplayPrefix.
Declaration
public string DisplayPrefix { get; set; }
Property Value
Type | Description |
---|---|
string |
IPAddress
Gets the IPAddress of this device.
Declaration
public IPAddress IPAddress { get; }
Property Value
Type | Description |
---|---|
IPAddress |
Id
Gets the unique identifier of the device.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |
InfoString
Gets the info string.
Declaration
public string InfoString { get; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or sets the name of this device.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PhoenixDevice
Gets the Phoenix IDevice this is based on.
Declaration
public IDevice PhoenixDevice { get; }
Property Value
Type | Description |
---|---|
IDevice |
XboxLiveDeviceId
Gets a value representing the XBL device ID.
Declaration
public string XboxLiveDeviceId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceCleanup()
Performs device cleanup
Declaration
public void Cleanup()
Equals(object)
Overrides the equals operator to compare whether two devices are the same.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The other device. |
Returns
Type | Description |
---|---|
bool | Whether the two devices are the same. |
Overrides
View SourceGetHashCode()
Overrides the GetHashCode() method.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code. |