-
Notifications
You must be signed in to change notification settings - Fork 20
/
EMSMessage.h
41 lines (33 loc) · 1.59 KB
/
EMSMessage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// Copyright (c) 2020 Emarsys. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol EMSActionModelProtocol;
NS_ASSUME_NONNULL_BEGIN
@interface EMSMessage : NSObject
@property(nonatomic, strong) NSString *id;
@property(nonatomic, strong) NSString *campaignId;
@property(nonatomic, strong, nullable) NSString *collapseId;
@property(nonatomic, strong) NSString *title;
@property(nonatomic, strong) NSString *body;
@property(nonatomic, strong, nullable) NSString *imageUrl;
@property(nonatomic, strong) NSNumber *receivedAt;
@property(nonatomic, strong, nullable) NSNumber *updatedAt;
@property(nonatomic, strong, nullable) NSNumber *expiresAt;
@property(nonatomic, strong, nullable) NSArray<NSString *> *tags;
@property(nonatomic, strong, nullable) NSDictionary<NSString *, NSString *> *properties;
@property(nonatomic, strong, nullable) NSArray<id<EMSActionModelProtocol>> *actions;
- (instancetype)initWithId:(NSString *)id
campaignId:(NSString *)campaignId
collapseId:(nullable NSString *)collapseId
title:(NSString *)title
body:(NSString *)body
imageUrl:(nullable NSString *)imageUrl
receivedAt:(NSNumber *)receivedAt
updatedAt:(nullable NSNumber *)updatedAt
expiresAt:(nullable NSNumber *)expiresAt
tags:(nullable NSArray<NSString *> *)tags
properties:(nullable NSDictionary<NSString *, NSString *> *)properties
actions:(nullable NSArray<id <EMSActionModelProtocol>> *)actions;
@end
NS_ASSUME_NONNULL_END