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
includeInitiatedDevicesboolIf 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
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
devicesIEnumerable<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
databaseNamestringThe name of the database that the replacement devices belong to.
devicesIEnumerable<Device>List of input devices to get the details about devices need replacement.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<List<DeviceReplacementInfo>>
Information about devices need replacement.