On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

GMTCMutableTripRequest Class Reference

GMTCMutableTripRequest Class Reference

Overview

Mutable version of GMTCTripRequest.

Inherits GMTCTripRequest.

Public Member Functions

(instancetype) - init
 Initializes the object.
(instancetype) - initWithRequestHeader:tripName:autoRefreshTimeInterval:
 Initializes the object.
(instancetype) - initWithRequestHeader:
 Initialization of the object.

Properties

GMTSRequestHeaderrequestHeader
 Header of the request.
NSString * tripName
 ID of the target trip.
NSTimeInterval autoRefreshTimeInterval
 Refresh time interval of the trip request.

Member Function Documentation

- (instancetype) init

Initializes the object.

- (instancetype) initWithRequestHeader: (nullable GMTSRequestHeader *)  requestHeader
tripName: (nullable NSString *)  tripName
autoRefreshTimeInterval: (NSTimeInterval)  autoRefreshTimeInterval 

Initializes the object.

Parameters:
requestHeaderThe header object of the request.
tripNameName of trip, if set as nil, the property `tripName` getter will return "".
autoRefreshTimeIntervalThe refresh time interval of the trip request.
- (instancetype) initWithRequestHeader: (nullable GMTSRequestHeader *)  requestHeader

Initialization of the object.

Parameters:
requestHeaderA request header object to bind with the current request.

Property Documentation

- (GMTSRequestHeader*) requestHeader [read, write, copy]

Header of the request.

Implements GMTSRequest.

- (NSString*) tripName [read, write, copy]

ID of the target trip.

The value will be an empty string("") if set as nil.

Implements GMTCTripRequest.

- (NSTimeInterval) autoRefreshTimeInterval [read, write, assign]

Refresh time interval of the trip request.

Implements GMTCTripRequest.