ActivityFeedVoucher
@interface ActivityFeedVoucher : NSObject
ActivityFeedVoucher is a light version of the Voucher containing only information relevant to the activity feed.
ActivityFeedVoucher is intended to be used to display in a list of cells.
-
The voucherId associated to get the full
Voucherif required.Declaration
Objective-C
@property (readonly, nonatomic) long long voucherId;Swift
var voucherId: Int64 { get } -
The title of the
Voucher.Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *title;Swift
var title: String? { get } -
The date of the last comment on the
Voucher.Declaration
Objective-C
@property (readonly, nonatomic) long long mostRecentTimeStamp;Swift
var mostRecentTimeStamp: Int64 { get } -
The text of the most recent comment.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *mostRecentComment;Swift
var mostRecentComment: String? { get } -
Whether or not the comment has been read by the user.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL mostRecentCommentRead;Swift
var mostRecentCommentRead: Bool { get } -
A banner url used for deeplinking to different places.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *bannerUrl;Swift
var bannerUrl: String? { get } -
A hex value string of the color the banner should be.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) NSString *bannerColorHexString;Swift
var bannerColorHexString: String? { get } -
The claimer id if the
Voucherhas been claimed.Declaration
Objective-C
@property (readonly, nonatomic) long long claimerId;Swift
var claimerId: Int64 { get } -
The date the
Voucherwas claimed.Declaration
Objective-C
@property (readonly, nonatomic) long long claimDateTimeStamp;Swift
var claimDateTimeStamp: Int64 { get } -
Default Initializer for
ActivityFeedVoucherfrom a dictionary.Declaration
Objective-C
+ (nonnull ActivityFeedVoucher *)activityFeedVoucherFromDictionary: (nonnull NSDictionary *)dictionary;Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])Parameters
dictionary- dictionary form of
ActivityFeedVoucher.Return Value
Instance of
ActivityFeedVoucher. -
Converts an
ActivityFeedVoucherto an NSDictionary that can be used for caching or sending to the server.Declaration
Objective-C
- (nonnull NSDictionary *)dictionaryRepresentation;Swift
func dictionaryRepresentation() -> [AnyHashable : Any]Return Value
dictionary - Dictionary form of an
ActivityFeedVoucher.
View on GitHub
ActivityFeedVoucher Class Reference