1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/Telegraph/TGTextCheckingResult.h

18 lines
522 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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