1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGPhonebookNumber.m
2015-10-01 19:19:52 +03:00

22 lines
496 B
Objective-C

#import "TGPhonebookNumber.h"
@implementation TGPhonebookNumber
- (instancetype)initWithPhone:(NSString *)phone label:(NSString *)label
{
self = [super init];
if (self != nil)
{
_phone = phone;
_label = label;
}
return self;
}
- (BOOL)isEqual:(id)object
{
return [object isKindOfClass:[TGPhonebookNumber class]] && TGStringCompare(((TGPhonebookNumber *)object)->_phone, _phone) && TGStringCompare(((TGPhonebookNumber *)object)->_label, _label);
}
@end