Show / Hide Table of Contents

Class DeviceInfo

Represents device information.

Inheritance
object
DeviceInfo
Implements
IComparable
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 Source

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

Device

Gets the device.

Declaration
public IDevice Device { get; }
Property Value
Type Description
IDevice
View Source

IconUri

Gets a value indicating the resource URI for the device icon.

Declaration
public Uri? IconUri { get; }
Property Value
Type Description
Uri

Methods

View Source

CompareTo(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:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.
Exceptions
Type Condition
ArgumentException

obj is not the same type as this instance.

View Source

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
object.Equals(object)
View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()
View Source

ToString()

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
object.ToString()

Operators

View Source

operator ==(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

Implements

IComparable
  • View Source
In this article
Back to top Generated by DocFX