commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRTweetEntity.h |
|
3 |
// |
|
4 |
// Copyright (c) 2016 Twitter. All rights reserved. |
|
5 |
// |
|
6 |
|
|
7 |
#import <Foundation/Foundation.h> |
|
8 |
#import <TwitterKit/TWTRJSONConvertible.h> |
|
9 |
|
|
10 |
NS_ASSUME_NONNULL_BEGIN |
|
11 |
|
|
12 |
@interface TWTRTweetEntity : NSObject <NSCoding, NSCopying, TWTRJSONConvertible> |
|
13 |
|
|
14 |
/** |
|
15 |
* The start index of the entity in code points. |
|
16 |
*/ |
|
17 |
@property (nonatomic, readonly) NSInteger startIndex; |
|
18 |
|
|
19 |
/** |
|
20 |
* The end index of the entity in code points. |
|
21 |
*/ |
|
22 |
@property (nonatomic, readonly) NSInteger endIndex; |
|
23 |
|
|
24 |
/** |
|
25 |
* Initializes the receiver with the given start index and end index. |
|
26 |
*/ |
|
27 |
- (instancetype)initWithStartIndex:(NSInteger)startIndex endIndex:(NSInteger)endIndex; |
|
28 |
|
|
29 |
/** |
|
30 |
* Subclasses should override this method to provide an accessibility value |
|
31 |
* which can be used inside of Tweets. |
|
32 |
*/ |
|
33 |
- (NSString *)accessibilityValue; |
|
34 |
|
|
35 |
@end |
|
36 |
|
|
37 |
NS_ASSUME_NONNULL_END |