commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRScribeSerializable.h |
|
3 |
// TwitterKit |
|
4 |
// |
|
5 |
// Created by Kang Chen on 11/18/14. |
|
6 |
// Copyright (c) 2014 Twitter. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
/** |
|
12 |
* Protocol for Scribe event objects. Objects that conform to this protocol should easily serialize |
|
13 |
* itself into an intermediate dictionary that can be further serialized into scribe event JSON. |
|
14 |
*/ |
|
15 |
@protocol TWTRScribeSerializable <NSObject> |
|
16 |
|
|
17 |
/** |
|
18 |
* Canonical key used to serialize object to Scribe event JSON. |
|
19 |
*/ |
|
20 |
+ (NSString *)scribeKey; |
|
21 |
/** |
|
22 |
* Dictionary used to serialize object to Scribe event JSON. |
|
23 |
*/ |
|
24 |
- (NSDictionary *)dictionaryRepresentation; |
|
25 |
|
|
26 |
@end |