1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGTextCheckingResult.h
2016-02-25 01:03:51 +01:00

23 lines
699 B
Objective-C

#import <Foundation/Foundation.h>
typedef enum {
TGTextCheckingResultTypeMention,
TGTextCheckingResultTypeHashtag,
TGTextCheckingResultTypeCommand,
TGTextCheckingResultTypeBold,
TGTextCheckingResultTypeUltraBold,
TGTextCheckingResultTypeItalic,
TGTextCheckingResultTypeCode,
TGTextCheckingResultTypeLink
} 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