mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
36 lines
898 B
Objective-C
36 lines
898 B
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 "ASActor.h"
|
|
|
|
#import "TL/TLMetaScheme.h"
|
|
|
|
#import "ASWatcher.h"
|
|
|
|
typedef enum {
|
|
TGSignUpResultNetworkError = -1,
|
|
TGSignUpResultInternalError = -2,
|
|
TGSignUpResultInvalidToken = -3,
|
|
TGSignUpResultTokenExpired = -4,
|
|
TGSignUpResultFloodWait = -5,
|
|
TGSignUpResultInvalidFirstName = -6,
|
|
TGSignUpResultInvalidLastName = -7
|
|
} TGSignUpResult;
|
|
|
|
@interface TGSignUpRequestBuilder : ASActor <ASWatcher>
|
|
|
|
@property (nonatomic, strong) ASHandle *actionHandle;
|
|
|
|
+ (NSString *)genericPath;
|
|
|
|
- (void)signUpSuccess:(TLauth_Authorization *)authorization;
|
|
- (void)signUpFailed:(TGSignUpResult)reason;
|
|
- (void)signUpRedirect:(NSInteger)datacenterId;
|
|
|
|
@end
|