123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
-
- #import "ZXTelParsedResult.h"
-
- @implementation ZXTelParsedResult
-
- - (id)initWithNumber:(NSString *)number telURI:(NSString *)telURI title:(NSString *)title {
- if (self = [super initWithType:kParsedResultTypeTel]) {
- _number = number;
- _telURI = telURI;
- _title = title;
- }
-
- return self;
- }
-
- + (id)telParsedResultWithNumber:(NSString *)number telURI:(NSString *)telURI title:(NSString *)title {
- return [[self alloc] initWithNumber:number telURI:telURI title:title];
- }
-
- - (NSString *)displayResult {
- NSMutableString *result = [NSMutableString stringWithCapacity:20];
- [ZXParsedResult maybeAppend:self.number result:result];
- [ZXParsedResult maybeAppend:self.title result:result];
- return result;
- }
-
- @end
|