Table of Contents

Class AsciiOperationBatteryStatus

Namespace
TechnologySolutions.Rfid.AsciiOperations
Assembly
TechnologySolutions.Rfid.Operations.dll

An implementation of IReaderOperationBatteryStatus. Periodically monitors the reader battery

public class AsciiOperationBatteryStatus : ReaderOperation, IReaderOperationBatteryStatus, IReaderOperation, ITriggerSource
Inheritance
AsciiOperationBatteryStatus
Implements
Inherited Members

Constructors

AsciiOperationBatteryStatus()

Initializes a new instance of the ReaderOperationBatteryStatus

public AsciiOperationBatteryStatus()

Properties

AsciiReader

Gets the AsciiReader for the operation

protected IAsciiReader AsciiReader { get; }

Property Value

IAsciiReader

BatteryLevel

Gets the battery level as a percentage

public int BatteryLevel { get; }

Property Value

int

LastUpdated

Gets the time when the battery status was last updated

public DateTime LastUpdated { get; }

Property Value

DateTime

Status

Gets a value indicating whether the unit is charging

public ChargeStatus Status { get; }

Property Value

ChargeStatus

Methods

PerformOperationAsync(CancellationToken)

Returns a task that performs the operation by getting the reader battery status

protected override Task PerformOperationAsync(CancellationToken cancelToken)

Parameters

cancelToken CancellationToken

Used to cancel the operation

Returns

Task

The task to get the reader battery status

RaiseUpdated()

Raises the Updated event

protected virtual void RaiseUpdated()

Events

Updated

Raised when the battery status is updated

public event EventHandler Updated

Event Type

EventHandler