VOActivityFeedVoucher

@interface VOActivityFeedVoucher : NSObject

VOActivityFeedVoucher is a light version of the VOVoucher containing only information relevant to the activity feed. VOActivityFeedVoucher is intended to be used to display in a list of cells.

  • The voucherId associated to get the full VOVoucher if required.

    Declaration

    Objective-C

    @property (readonly, nonatomic) long long voucherId;

    Swift

    var voucherId: Int64 { get }
  • The title of the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *title;

    Swift

    var title: String? { get }
  • The owner (creator) of the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, nonatomic) VOUser *_Nonnull owner;

    Swift

    var owner: VOUser { get }
  • The last user to comment on the VOVoucher.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) VOUser *mostRecentCommentUser;

    Swift

    var mostRecentCommentUser: VOUser? { get }
  • The date of the last comment on the VOVoucher.

    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 VOVoucher has been claimed.

    Declaration

    Objective-C

    @property (readonly, nonatomic) long long claimerId;

    Swift

    var claimerId: Int64 { get }
  • The date the VOVoucher was claimed.

    Declaration

    Objective-C

    @property (readonly, nonatomic) long long claimDateTimeStamp;

    Swift

    var claimDateTimeStamp: Int64 { get }
  • Default Initializer for VOActivityFeedVoucher from a dictionary.

    Declaration

    Objective-C

    + (nonnull VOActivityFeedVoucher *)activityFeedVoucherFromDictionary:
        (nonnull NSDictionary *)dictionary;

    Swift

    /*not inherited*/ init(from dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    - dictionary form of VOActivityFeedVoucher.

    Return Value

    Instance of VOActivityFeedVoucher.

  • Converts an VOActivityFeedVoucher to 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 VOActivityFeedVoucher.