mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
18 lines
522 B
C
18 lines
522 B
C
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
typedef enum {
|
||
|
TGTextCheckingResultTypeMention,
|
||
|
TGTextCheckingResultTypeHashtag,
|
||
|
TGTextCheckingResultTypeCommand
|
||
|
} TGTextCheckingResultType;
|
||
|
|
||
|
@interface TGTextCheckingResult : NSObject
|
||
|
|
||
|
@property (nonatomic, readonly) NSRange range;
|
||
|
@property (nonatomic, readonly) TGTextCheckingResultType type;
|
||
|
@property (nonatomic, strong, readonly) NSString *contents;
|
||
|
|
||
|
- (instancetype)initWithRange:(NSRange)range type:(TGTextCheckingResultType)type contents:(NSString *)contents;
|
||
|
|
||
|
@end
|