mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 09:29:55 +01:00
23 lines
699 B
Objective-C
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
|