TKTour
@interface TKTour : NSObject
Basic Tour model keeping various information about its properties.
-
Global identifier.
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *_Nonnull ID;
Swift
var ID: String { get set }
-
Displayable name of the tour, translated if possible. Example: Buckingham Palace.
Declaration
Objective-C
@property (readwrite, copy, nonatomic) NSString *_Nonnull title;
Swift
var title: String { get set }
-
Short perex introducing the tour.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *perex;
Swift
var perex: String? { get set }
-
Price value. Provided in
USD
.Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSNumber *price;
Swift
var price: NSNumber? { get set }
-
Original price value. Usable for discount calculation. Value in
USD
.Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSNumber *originalPrice;
Swift
var originalPrice: NSNumber? { get set }
-
Star rating value.
Note
Possible values: double in range0
–5
.Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSNumber *rating;
Swift
var rating: NSNumber? { get set }
-
Duration string. Should be provided in a target language.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *duration;
Swift
var duration: String? { get set }
-
Online URL of the Tour.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSURL *URL;
Swift
var url: URL? { get set }
-
Thumbnail URL to an image of approximate size 600x400 pixels.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSURL *photoURL;
Swift
var photoURL: URL? { get set }
-
Count of reviews.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSNumber *reviewsCount;
Swift
var reviewsCount: NSNumber? { get set }