commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRScribeCardEvent.h |
|
3 |
// TwitterCore |
|
4 |
// |
|
5 |
// Created by Kang Chen on 9/30/15. |
|
6 |
// Copyright © 2015 Twitter Inc. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import "TWTRScribeSerializable.h" |
|
11 |
|
|
12 |
NS_ASSUME_NONNULL_BEGIN |
|
13 |
|
|
14 |
/** |
|
15 |
* Type of promotional card. Numeric values are direct mapping of what's in the backend. |
|
16 |
*/ |
|
17 |
typedef NS_ENUM(NSUInteger, TWTRScribePromotionCardType) { |
|
18 |
/** |
|
19 |
* Image App Card |
|
20 |
*/ |
|
21 |
TWTRScribePromotionCardTypeImageAppDownload = 8, |
|
22 |
}; |
|
23 |
|
|
24 |
/** |
|
25 |
* Immutable representation of a scribe Card event item. |
|
26 |
*/ |
|
27 |
@interface TWTRScribeCardEvent : NSObject <TWTRScribeSerializable> |
|
28 |
|
|
29 |
@property (nonatomic, readonly) TWTRScribePromotionCardType promotionCardType; |
|
30 |
|
|
31 |
- (instancetype)init NS_UNAVAILABLE; |
|
32 |
- (instancetype)initWithPromotionCardType:(TWTRScribePromotionCardType)promotionCardType; |
|
33 |
|
|
34 |
@end |
|
35 |
|
|
36 |
NS_ASSUME_NONNULL_END |