GMTDTaskInfo
@interface GMTDTaskInfo : GMTSImmutableData
An immutable object representing a task that will be completed at a vehicle stop.
-
The unique ID of the task.
Declaration
Swift
var taskID: String { get }
Objective-C
@property (nonatomic, copy, readonly) GMTDFleetEngineIDString *_Nonnull taskID;
-
The time required to perform the task.
Declaration
Swift
var taskDuration: TimeInterval { get }
Objective-C
@property (nonatomic, readonly) NSTimeInterval taskDuration;
-
Instantiates an instance of this class.
Declaration
Swift
init(taskID: String, taskDuration: TimeInterval)
Objective-C
- (nonnull instancetype)initWithTaskID:(nonnull GMTDFleetEngineIDString *)taskID taskDuration:(NSTimeInterval)taskDuration;
Parameters
taskID
The ID of a task.
taskDuration
The time required to perform the task.
-
Unavailable
Use
-initWithTaskID:taskDuration:
instead.Declaration
Objective-C
- (nonnull instancetype)init;