Class YMKMasstransitLine

Describes a public transport line.

Class Methods

Properties

id

Line ID.

isNight

True if the line operates only at night.

name

Line name.

style

Line style; see YMKMasstransitLineStyle.

vehicleTypes

List of line types.

Method Detail

+lineWithId:name:vehicleTypes:style:isNight:

+ (nonnull YMKMasstransitLine *)lineWithId:(nonnull NSString *)id
                                      name:(nonnull NSString *)name
                              vehicleTypes:(nonnull NSArray< NSString * > *)vehicleTypes
                                     style:(nullable YMKMasstransitLineStyle *)style
                                   isNight:(BOOL)isNight 

Property Detail

id

(assign, readonly) NSString * id

Line ID.

isNight

(assign, readonly) BOOL isNight

True if the line operates only at night.

name

(assign, readonly) NSString * name

Line name.

style

(assign, readonly) YMKMasstransitLineStyle * style

Line style; see YMKMasstransitLineStyle.

Optional property, can be null.

vehicleTypes

(assign, readonly) NSArray< NSString * > * vehicleTypes

List of line types.

Starts from the most detailed, ends with the most general.