commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRTimelineFilter.h |
|
3 |
// TwitterKit |
|
4 |
// |
|
5 |
// Copyright © 2016 Twitter. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
/** |
|
11 |
* Assigning this object to any data source that implements `TWTRTimelineDataSource` |
|
12 |
* will filter the tweets on that timeline using the provided filter configuration. |
|
13 |
*/ |
|
14 |
@interface TWTRTimelineFilter : NSObject <NSCopying> |
|
15 |
|
|
16 |
@property (nonatomic, copy, nullable) NSSet *keywords; |
|
17 |
|
|
18 |
@property (nonatomic, copy, nullable) NSSet *hashtags; |
|
19 |
|
|
20 |
@property (nonatomic, copy, nullable) NSSet *handles; |
|
21 |
|
|
22 |
@property (nonatomic, copy, nullable) NSSet *urls; |
|
23 |
|
|
24 |
- (nullable instancetype)initWithJSONDictionary:(nonnull NSDictionary *)dictionary; |
|
25 |
- (nonnull instancetype) new NS_UNAVAILABLE; |
|
26 |
|
|
27 |
/* |
|
28 |
* Returns count of all filters |
|
29 |
*/ |
|
30 |
- (NSUInteger)filterCount; |
|
31 |
@end |