Class DeviceInfo
Represents device information.
Implements
Inherited Members
Namespace: Phoenix.BotBrain.Overmind
Assembly: Phoenix.Plugin.BotBrain.Overmind.dll
Syntax
public class DeviceInfo : IComparable
Remarks
Initializes a new instance of the DeviceInfo class.
Constructors
View SourceDeviceInfo(IDevice, IDeviceManager?)
Represents device information.
Declaration
public DeviceInfo(IDevice device, IDeviceManager? deviceManager = null)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device. |
IDeviceManager | deviceManager | The device manager. |
Remarks
Initializes a new instance of the DeviceInfo class.
Properties
View SourceDevice
Gets the device.
Declaration
public IDevice Device { get; }
Property Value
Type | Description |
---|---|
IDevice |
IconUri
Gets a value indicating the resource URI for the device icon.
Declaration
public Uri? IconUri { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
View SourceCompareTo(object?)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare with this instance. |
Returns
Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Exceptions
Type | Condition |
---|---|
ArgumentException |
|
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |
Overrides
Operators
View Sourceoperator ==(DeviceInfo, DeviceInfo)
Determines if an item is equal to another.
Declaration
public static bool operator ==(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |
operator >(DeviceInfo, DeviceInfo)
Determines if an item is greater than another.
Declaration
public static bool operator >(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |
operator >=(DeviceInfo, DeviceInfo)
Determines if an item is greater than or equal to another.
Declaration
public static bool operator >=(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |
operator !=(DeviceInfo, DeviceInfo)
Determines if an item is not equal to another.
Declaration
public static bool operator !=(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |
operator <(DeviceInfo, DeviceInfo)
Determines if an item is less than another.
Declaration
public static bool operator <(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |
operator <=(DeviceInfo, DeviceInfo)
Determines if an item is less than or equal another.
Declaration
public static bool operator <=(DeviceInfo left, DeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
DeviceInfo | left | The item to compare. |
DeviceInfo | right | The other item. |
Returns
Type | Description |
---|---|
bool | The comparison result. |