Class SdkDeviceInfo
Information about a device.
Implements
Namespace: Colore.Data
Assembly: Colore.dll
Syntax
public sealed class SdkDeviceInfo : ValueType
Constructors
SdkDeviceInfo(DeviceType, UInt32)
Initializes a new instance of the SdkDeviceInfo struct.
Declaration
public SdkDeviceInfo(DeviceType type, uint connectedCount)
Parameters
Type | Name | Description |
---|---|---|
DeviceType | type | The type of device. |
UInt32 | connectedCount | The number of connected devices for the type. |
Fields
ConnectedCount
The number of connected devices of the given type.
Declaration
public readonly uint ConnectedCount
Field Value
Type | Description |
---|---|
UInt32 |
Remarks
This property is the DWORD
field Connected
in the SDK type DEVICE_INFO_TYPE
.
In Colore we rename it ConnectedCount to be more descriptive and have the helper
Connected property for doing boolean checks on connected-ness.
Type
The type of device this is.
Declaration
public readonly DeviceType Type
Field Value
Type | Description |
---|---|
DeviceType |
Properties
Connected
Gets a value indicating whether this device is connected.
Declaration
public bool Connected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Equals(SdkDeviceInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(SdkDeviceInfo other)
Parameters
Type | Name | Description |
---|---|---|
SdkDeviceInfo | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
Boolean |
|
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer that is the hash code for this instance. |
Operators
Equality(SdkDeviceInfo, SdkDeviceInfo)
Checks an instance of SdkDeviceInfo for equality with another SdkDeviceInfo instance.
Declaration
public static bool operator ==(SdkDeviceInfo left, SdkDeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
SdkDeviceInfo | left | Left operand. |
SdkDeviceInfo | right | Right operand. |
Returns
Type | Description |
---|---|
Boolean |
|
Inequality(SdkDeviceInfo, SdkDeviceInfo)
Checks an instance of SdkDeviceInfo for inequality with another SdkDeviceInfo instance.
Declaration
public static bool operator !=(SdkDeviceInfo left, SdkDeviceInfo right)
Parameters
Type | Name | Description |
---|---|---|
SdkDeviceInfo | left | Left operand. |
SdkDeviceInfo | right | Right operand. |
Returns
Type | Description |
---|---|
Boolean |
|