GMTCMutableTripModelOptions Class Reference

GMTCMutableTripModelOptions Class Reference

Overview

Mutable version of GMTCTripModelOptions.

Inherits GMTCTripModelOptions.

Public Member Functions

(instancetype) - initWithAutoRefreshTimeInterval:tripRequestHeader:
 Initializes the instance.
(instancetype) - init
 Initializes the instance.

Static Public Member Functions

(instancetype) + mutableTripModelOptionsWithOptions:
 Creates and returns an instance of GMTCMutableTripModelOptions based on the given instance of GMTCTripModelOptions.

Properties

NSTimeInterval autoRefreshTimeInterval
 Sets or gets the current refresh time interval between the repeated trip info polling from server.
GMTSRequestHeadertripRequestHeader
 Sets or gets the request header that will be appended to each trip info polling call.

Member Function Documentation

+ (instancetype) mutableTripModelOptionsWithOptions: (nullable GMTCTripModelOptions *)  options

Creates and returns an instance of GMTCMutableTripModelOptions based on the given instance of GMTCTripModelOptions.

Parameters:
optionsThe original instance of GMTCTripModelOptions, based on where the mutable data will be constructed.
- (instancetype) initWithAutoRefreshTimeInterval: (NSTimeInterval)  autoRefreshTimeInterval
tripRequestHeader: (nullable GMTSRequestHeader *)  tripRequestHeader 

Initializes the instance.

Parameters:
autoRefreshTimeIntervalA refresh time inverval between the repeated trip info polling.
tripRequestHeaderA trip request header that will be appended to each trip info polling call.
- (instancetype) init

Initializes the instance.

Calling this is equivalent to calling `initWithAutoRefreshTimeInterval:0.0 tripRequestHeader:nil`.


Property Documentation

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

Sets or gets the current refresh time interval between the repeated trip info polling from server.

Implements GMTCTripModelOptions.

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

Sets or gets the request header that will be appended to each trip info polling call.

Implements GMTCTripModelOptions.