mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
22 lines
496 B
Objective-C
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
|