mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
23 lines
656 B
Objective-C
23 lines
656 B
Objective-C
#import "TGTextCheckingResult.h"
|
|
|
|
@implementation TGTextCheckingResult
|
|
|
|
- (instancetype)initWithRange:(NSRange)range type:(TGTextCheckingResultType)type contents:(NSString *)contents {
|
|
return [self initWithRange:range type:type contents:contents value:nil highlightAsLink:false];
|
|
}
|
|
|
|
- (instancetype)initWithRange:(NSRange)range type:(TGTextCheckingResultType)type contents:(NSString *)contents value:(id)value highlightAsLink:(bool)highlightAsLink
|
|
{
|
|
if (self != nil)
|
|
{
|
|
_range = range;
|
|
_type = type;
|
|
_contents = contents;
|
|
_value = value;
|
|
_highlightAsLink = highlightAsLink;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|