Interface IFirmwareChecker
public interface IFirmwareChecker
Methods
GetFirmwareList(FirmwareChannel, CancellationToken)
Task<Result<List<RemoteFirmwareInfo>>> GetFirmwareList(FirmwareChannel channel, CancellationToken ct = default)
Parameters
channel
FirmwareChannelct
CancellationToken
Returns
GetLatestLocalVersion(IEnumerable<string>, CancellationToken)
Returns the path and version of the latest firmware, given a list of local firmware paths. If the firmware file is not found or cannot be read it is ignored and it will not be returned. If all paths are invalid or point to invalid firmware, an error result is returned.
Task<Result<LocalFirmwareInfo>> GetLatestLocalVersion(IEnumerable<string> filePaths, CancellationToken ct = default)
Parameters
filePaths
IEnumerable<string>ct
CancellationToken
Returns
GetLatestRemoteVersion(FirmwareChannel, Dictionary<string, string>, CancellationToken)
Task<Result<RemoteFirmwareInfo>> GetLatestRemoteVersion(FirmwareChannel channel, Dictionary<string, string> metadata, CancellationToken ct = default)
Parameters
channel
FirmwareChannelmetadata
Dictionary<string, string>ct
CancellationToken
Returns
GetLatestRemoteVersion(FirmwareChannel, CancellationToken)
Task<Result<RemoteFirmwareInfo>> GetLatestRemoteVersion(FirmwareChannel channel, CancellationToken ct = default)
Parameters
channel
FirmwareChannelct
CancellationToken
Returns
GetVersion(string, CancellationToken)
Task<Result<FirmwareVersion>> GetVersion(string filePath, CancellationToken ct = default)
Parameters
filePath
stringct
CancellationToken