SITResource
@interface SITResource : NSObject
Abstract base class with common properties across Resources
-
Create a resource
Declaration
Objective-C
- (instancetype _Nonnull)initWithIdentifier:(NSString *_Nonnull)identifier createdAt:(NSDate *_Nonnull)createdAt updatedAt:(NSDate *_Nonnull)updatedAt customFields: (NSDictionary *_Nonnull)customFields;
Parameters
identifier
Identifier of the resource
createdAt
Creation date
updatedAt
Last updated date
customFields
Key-Value pairs that can be used to store information
Return Value
SITResource
-
Unique identifier of the resource
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSString *_Nonnull identifier;
-
Date containing the time when a resource was first created.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSDate *_Nonnull createdAt;
-
Date containing the time when a resource was last updated.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSDate *_Nonnull updatedAt;
-
A dictionary containing additional information not managed by Situm SDK
Note
You can use this property to insert personalized content for your application. It will be loaded with the contents inserted on the web app.Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSDictionary *_Nonnull customFields;