Struct MissionDownloadResult
Terminal state of one mission download transaction.
public readonly record struct MissionDownloadResult : IEquatable<MissionDownloadResult>
- Implements
- Inherited Members
Constructors
MissionDownloadResult(MissionTransactionStatus, IReadOnlyList<MissionItem>, uint?, TimeSpan)
Terminal state of one mission download transaction.
public MissionDownloadResult(MissionTransactionStatus Status, IReadOnlyList<MissionItem> Items, uint? OpaqueId, TimeSpan Elapsed)
Parameters
StatusMissionTransactionStatusHigh-level outcome category — see MissionTransactionStatus.
ItemsIReadOnlyList<MissionItem>The downloaded items, in sequence order. Populated only on Accepted; empty for every other outcome.
OpaqueIduint?On-vehicle plan id from the
MISSION_COUNTsent by the vehicle. Populated only on Accepted. Use this to detect whether the on-vehicle mission has changed since a prior download/upload.ElapsedTimeSpanWall-clock duration from download start to terminal outcome.
Properties
Elapsed
Wall-clock duration from download start to terminal outcome.
public TimeSpan Elapsed { get; init; }
Property Value
IsAccepted
public bool IsAccepted { get; }
Property Value
Items
The downloaded items, in sequence order. Populated only on Accepted; empty for every other outcome.
public IReadOnlyList<MissionItem> Items { get; init; }
Property Value
OpaqueId
On-vehicle plan id from the MISSION_COUNT sent by the vehicle.
Populated only on Accepted. Use this to detect
whether the on-vehicle mission has changed since a prior download/upload.
public uint? OpaqueId { get; init; }
Property Value
- uint?
Status
High-level outcome category — see MissionTransactionStatus.
public MissionTransactionStatus Status { get; init; }