Interface IDeviceStatus
Responsible for checking and setting connection status for a device.
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public interface IDeviceStatus
Properties
View SourceDisplayName
Gets the display name of the device.
Declaration
string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
StatusCheckInterval
Gets the duration to wait before refreshing device status.
Declaration
TimeSpan StatusCheckInterval { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
View SourceGetAsync()
Gets the DeviceConnectionStatus of a device.
Declaration
Task<DeviceConnectionStatus> GetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DeviceConnectionStatus> | The status of the device. |
Set(DeviceConnectionStatus)
Sets the DeviceConnectionStatus for a device.
Declaration
void Set(DeviceConnectionStatus status)
Parameters
Type | Name | Description |
---|---|---|
DeviceConnectionStatus | status | The status to set. |