AI-generated Key Takeaways
-
GMTDUpdateDeliveryTaskRequest
is an immutable object used to request updates to a delivery task. -
The
initWithTaskID:taskOutcome:taskOutcomeTimestamp:
method initializes the object with the task's ID, outcome, and the timestamp of the outcome. -
The
taskID
,taskOutcome
, andoutcomeTimestamp
properties provide read-only access to the task's ID, outcome, and the time the outcome occurred, respectively. -
The
init
method is unavailable, and users are recommended to useinitWithTaskID:taskOutcome:taskOutcomeTimestamp:
instead.
GMTDUpdateDeliveryTaskRequest
@interface GMTDUpdateDeliveryTaskRequest : GMTSImmutableData
An immutable object representing a request to update a delivery task.
-
Initializes and returns a
GMTDCreateDeliveryTaskRequest
object using the provided attributes.Declaration
Swift
init(taskID: String, taskOutcome: GMTSTaskOutcome, taskOutcomeTimestamp outcomeTimestamp: TimeInterval)
Objective-C
- (nonnull instancetype)initWithTaskID:(nonnull GMTDFleetEngineIDString *)taskID taskOutcome:(GMTSTaskOutcome)taskOutcome taskOutcomeTimestamp:(NSTimeInterval)outcomeTimestamp;
Parameters
taskID
The ID of the task.
taskOutcome
The outcome of the task.
outcomeTimestamp
The time when the outcome was reported.
-
Unavailable
Use
-initWithTaskID:taskOutcome:taskOutcomeTimestamp:
instead.Declaration
Objective-C
- (null_unspecified instancetype)init;
-
The ID of the task.
Declaration
Swift
var taskID: String { get }
Objective-C
@property (nonatomic, readonly) GMTDFleetEngineIDString *_Nonnull taskID;
-
The outcome of the task.
Declaration
Swift
var taskOutcome: GMTSTaskOutcome { get }
Objective-C
@property (nonatomic, readonly) GMTSTaskOutcome taskOutcome;
-
The time the outcome occurred.
Declaration
Swift
var outcomeTimestamp: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval outcomeTimestamp;