TKTripInfo
@interface TKTripInfo : NSObject
Lightweight, read-only Trip Info model. Useful for listings, collections and similar stuff. Includes same information as TKTrip, but does not carry whole TKTripDayItems, but only information about their count. TKTripInfo can not be used to delete whole trip.
-
TripInfo identifier. Has same value as ID in TKTrip for the same trip.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSString *_Nonnull ID;
Swift
var ID: String { get }
-
Trip name.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSString *_Nonnull name;
Swift
var name: String { get }
-
Working Trip version.
Declaration
Objective-C
@property (readonly, nonatomic) NSUInteger version;
Swift
var version: UInt { get }
-
Start date of the Trip.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSDate *startDate;
Swift
var startDate: Date? { get }
-
Last Trip update timestamp.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSDate *lastUpdate;
Swift
var lastUpdate: Date? { get }
-
Flag indicating whether the Trip is currently placed in the Trash.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL deleted;
Swift
var deleted: Bool { get }
-
Array of Trip Destination IDs. Customisable.
Declaration
Objective-C
@property (readonly, copy, nonatomic) NSArray<NSString *> *_Nonnull destinationIDs;
Swift
var destinationIDs: [String] { get }
-
A number of days/day length defined for the Trip.
Declaration
Objective-C
@property (readonly, nonatomic) NSUInteger daysCount;
Swift
var daysCount: UInt { get }