rpc

package
v0.0.0-...-6e21e7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServiceImpl

type AuthServiceImpl struct {
}

func (*AuthServiceImpl) AuthBindTempAuthKey

func (s *AuthServiceImpl) AuthBindTempAuthKey(ctx context.Context, request *mtproto.TLAuthBindTempAuthKey) (*mtproto.Bool, error)

auth.bindTempAuthKey#cdd42a05 perm_auth_key_id:long nonce:long expires_at:int encrypted_message:bytes = Bool;

func (*AuthServiceImpl) AuthCancelCode

func (s *AuthServiceImpl) AuthCancelCode(ctx context.Context, request *mtproto.TLAuthCancelCode) (*mtproto.Bool, error)

auth.cancelCode#1f040578 phone_number:string phone_code_hash:string = Bool;

func (*AuthServiceImpl) AuthCheckPassword

auth.checkPassword#a63011e password_hash:bytes = auth.Authorization;

func (*AuthServiceImpl) AuthCheckPhone

auth.checkPhone#6fe51dfb phone_number:string = auth.CheckedPhone;

func (*AuthServiceImpl) AuthDropTempAuthKeys

func (s *AuthServiceImpl) AuthDropTempAuthKeys(ctx context.Context, request *mtproto.TLAuthDropTempAuthKeys) (*mtproto.Bool, error)

auth.dropTempAuthKeys#8e48a188 except_auth_keys:Vector<long> = Bool;

func (*AuthServiceImpl) AuthExportAuthorization

auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization;

func (*AuthServiceImpl) AuthImportAuthorization

func (s *AuthServiceImpl) AuthImportAuthorization(ctx context.Context, request *mtproto.TLAuthImportAuthorization) (*mtproto.Auth_Authorization, error)

auth.importAuthorization#e3ef9613 id:int bytes:bytes = auth.Authorization;

func (*AuthServiceImpl) AuthImportBotAuthorization

func (s *AuthServiceImpl) AuthImportBotAuthorization(ctx context.Context, request *mtproto.TLAuthImportBotAuthorization) (*mtproto.Auth_Authorization, error)

auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;

func (*AuthServiceImpl) AuthLogOut

func (s *AuthServiceImpl) AuthLogOut(ctx context.Context, request *mtproto.TLAuthLogOut) (*mtproto.Bool, error)

auth.logOut#5717da40 = Bool;

func (*AuthServiceImpl) AuthRecoverPassword

func (s *AuthServiceImpl) AuthRecoverPassword(ctx context.Context, request *mtproto.TLAuthRecoverPassword) (*mtproto.Auth_Authorization, error)

auth.recoverPassword#4ea56e92 code:string = auth.Authorization;

func (*AuthServiceImpl) AuthRequestPasswordRecovery

func (s *AuthServiceImpl) AuthRequestPasswordRecovery(ctx context.Context, request *mtproto.TLAuthRequestPasswordRecovery) (*mtproto.Auth_PasswordRecovery, error)

auth.requestPasswordRecovery#d897bc66 = auth.PasswordRecovery;

func (*AuthServiceImpl) AuthResendCode

func (s *AuthServiceImpl) AuthResendCode(ctx context.Context, request *mtproto.TLAuthResendCode) (*mtproto.Auth_SentCode, error)

auth.resendCode#3ef1a9bf phone_number:string phone_code_hash:string = auth.SentCode;

func (*AuthServiceImpl) AuthResetAuthorizations

func (s *AuthServiceImpl) AuthResetAuthorizations(ctx context.Context, request *mtproto.TLAuthResetAuthorizations) (*mtproto.Bool, error)

auth.resetAuthorizations#9fab0d1a = Bool;

func (*AuthServiceImpl) AuthSendCode

func (s *AuthServiceImpl) AuthSendCode(ctx context.Context, request *mtproto.TLAuthSendCode) (*mtproto.Auth_SentCode, error)

auth.sendCode#86aef0ec flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string = auth.SentCode;

func (*AuthServiceImpl) AuthSendCodeLayer51

func (s *AuthServiceImpl) AuthSendCodeLayer51(ctx context.Context, request *mtproto.TLAuthSendCodeLayer51) (*mtproto.Auth_SentCode, error)

auth.sendCode#ccfd70cf flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool api_id:int api_hash:string lang_code:string = auth.SentCode;

func (*AuthServiceImpl) AuthSendInvites

func (s *AuthServiceImpl) AuthSendInvites(ctx context.Context, request *mtproto.TLAuthSendInvites) (*mtproto.Bool, error)

auth.sendInvites#771c1d97 phone_numbers:Vector<string> message:string = Bool;

func (*AuthServiceImpl) AuthSignIn

auth.signIn#bcd51581 phone_number:string phone_code_hash:string phone_code:string = auth.Authorization;

func (*AuthServiceImpl) AuthSignUp

  Android client auth.signUp#1b067634, handler error
	if (error.text.contains("PHONE_NUMBER_INVALID")) {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidPhoneNumber", R.string.InvalidPhoneNumber));
	} else if (error.text.contains("PHONE_CODE_EMPTY") || error.text.contains("PHONE_CODE_INVALID")) {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidCode", R.string.InvalidCode));
	} else if (error.text.contains("PHONE_CODE_EXPIRED")) {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("CodeExpired", R.string.CodeExpired));
	} else if (error.text.contains("FIRSTNAME_INVALID")) {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidFirstName", R.string.InvalidFirstName));
	} else if (error.text.contains("LASTNAME_INVALID")) {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), LocaleController.getString("InvalidLastName", R.string.InvalidLastName));
	} else {
		needShowAlert(LocaleController.getString("AppName", R.string.AppName), error.text);
	}

auth.signUp#1b067634 phone_number:string phone_code_hash:string phone_code:string first_name:string last_name:string = auth.Authorization;

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL