1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGCreateContactController.h
2014-07-10 18:11:09 +04:00

32 lines
1.1 KiB
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGUserInfoController.h"
@class TGCreateContactController;
@protocol TGCreateContactControllerDelegate <NSObject>
@optional
- (void)createContactControllerDidFinish:(TGCreateContactController *)createContactController;
@end
@interface TGCreateContactController : TGUserInfoController
@property (nonatomic, weak) id<TGCreateContactControllerDelegate> delegate;
- (instancetype)init;
- (instancetype)initWithUid:(int32_t)uid firstName:(NSString *)firstName lastName:(NSString *)lastName phoneNumber:(NSString *)phoneNumber;
- (instancetype)initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName phoneNumber:(NSString *)phoneNumber;
- (instancetype)initWithUid:(int32_t)uid phoneNumber:(NSString *)phoneNumber existingUid:(int32_t)existingUid;
- (instancetype)initWithUid:(int32_t)uid phoneNumber:(NSString *)phoneNumber existingNativeContactId:(int)existingNativeContactId;
@end