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

18 lines
522 B
Objective-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