Table of Contents

Interface IDeviceReplacementInfoDownloader

Namespace
Geotab.Checkmate.ObjectModel.DeviceReplacement
Assembly
Geotab.Checkmate.ObjectModel.dll

DeviceReplacementInfoDownloader interface for DebugDeviceReplacementInfoDownloader and DeviceReplacementInfoDownloader

public interface IDeviceReplacementInfoDownloader

Methods

GetCountOfReplacementDevicesAsync(bool)

Deprecated. Gets the count of number of devices that need replacement.

[Obsolete("Replaced by Datastore.GetCountOf<DeviceReplacementInfo>")]
Task<int> GetCountOfReplacementDevicesAsync(bool includeInitiatedDevices)

Parameters

includeInitiatedDevices bool

If False then this method will return number of devices for those replacement request yet to be raised. If True then number of devices eligible for replacement devices. Default Value is False.

Returns

Task<int>

Number of devices need replacement.

GetDeviceReplacementInfoFromCacheAsync(IEnumerable<Device>)

Deprecated. Runs for given database from cache and fetches list of devices need replacement.

[Obsolete("Please use DataStore.Get<DeviceReplacementInfo> instead")]
Task<List<ResultDeviceReplacementInfo>> GetDeviceReplacementInfoFromCacheAsync(IEnumerable<Device> devices)

Parameters

devices IEnumerable<Device>

List of input devices to get the details about devices need replacement.

Returns

Task<List<ResultDeviceReplacementInfo>>

Information about devices need replacement.

RunAsync(string, IEnumerable<Device>, CancellationToken)

Runs for given database and client and fetches list of devices need replacement.

Task<List<DeviceReplacementInfo>?> RunAsync(string databaseName, IEnumerable<Device> devices, CancellationToken cancellationToken)

Parameters

databaseName string

The name of the database that the replacement devices belong to.

devices IEnumerable<Device>

List of input devices to get the details about devices need replacement.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<List<DeviceReplacementInfo>>

Information about devices need replacement.