MNFFeedItem
The MNFFeedItem class encapsulates feed item json data from the server in an object.
A feed item should not be directly initialized but instead should be constructed with data from the server. The response from the server will be automatically converted to an MNFFeedItem object.
-
@abstact The date of the feed item.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSDate *_Nonnull date;Swift
var date: Date { get } -
@abstract The topic id of the feed item. This can correspond to identifiers of the object being returned in the feed.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull topicId;Swift
var topicId: NSNumber { get } -
@abstract The topic name of the feed item.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull topicName;Swift
var topicName: String { get } -
@abstract The title of the feed item. This is a convenient display title gathered from the object data.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull title;Swift
var title: String { get } -
@abstract The body of the feed item. This is a convenient display body gathered from the object data.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull body;Swift
var body: String { get } -
@abstract The type name of the feed item. This corresponds to the default type values of each feed item.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull typeName;Swift
var typeName: String { get } -
The type of the feed item. A value from /feed/types. ‘Transactions’,‘UserEvents’,‘Cashback’.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull type;Swift
var type: String { get } -
@abstract The deserialized model object that this feed item represents.
@discussion This object will be serialized according to the feed item type name. A ‘TransactionFeedItemModel’ type name means the model will be an MNFTransaction object.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSObject *_Nonnull model;Swift
var model: NSObject { get }
View on GitHub