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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountServiceImpl

type AccountServiceImpl struct {
}

func (*AccountServiceImpl) AccountChangePhone

func (s *AccountServiceImpl) AccountChangePhone(ctx context.Context, request *mtproto.TLAccountChangePhone) (*mtproto.User, error)

account.changePhone#70c32edb phone_number:string phone_code_hash:string phone_code:string = User;

func (*AccountServiceImpl) AccountCheckUsername

func (s *AccountServiceImpl) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)

account.checkUsername#2714d86c username:string = Bool;

func (*AccountServiceImpl) AccountConfirmPhone

func (s *AccountServiceImpl) AccountConfirmPhone(ctx context.Context, request *mtproto.TLAccountConfirmPhone) (*mtproto.Bool, error)

account.confirmPhone#5f2178c3 phone_code_hash:string phone_code:string = Bool;

func (*AccountServiceImpl) AccountDeleteAccount

func (s *AccountServiceImpl) AccountDeleteAccount(ctx context.Context, request *mtproto.TLAccountDeleteAccount) (*mtproto.Bool, error)

account.deleteAccount#418d4e0b reason:string = Bool;

func (*AccountServiceImpl) AccountGetAccountTTL

func (s *AccountServiceImpl) AccountGetAccountTTL(ctx context.Context, request *mtproto.TLAccountGetAccountTTL) (*mtproto.AccountDaysTTL, error)

account.getAccountTTL#8fc711d = AccountDaysTTL;

func (*AccountServiceImpl) AccountGetAuthorizations

account.getAuthorizations#e320c158 = account.Authorizations;

func (*AccountServiceImpl) AccountGetNotifySettings

account.getNotifySettings#12b3ad31 peer:InputNotifyPeer = PeerNotifySettings;

func (*AccountServiceImpl) AccountGetPassword

account.getPassword#548a30f5 = account.Password;

func (*AccountServiceImpl) AccountGetPasswordSettings

account.getPasswordSettings#bc8d11bb current_password_hash:bytes = account.PasswordSettings;

func (*AccountServiceImpl) AccountGetPrivacy

account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules;

func (*AccountServiceImpl) AccountGetTmpPassword

account.getTmpPassword#4a82327e password_hash:bytes period:int = account.TmpPassword;

func (*AccountServiceImpl) AccountGetWallPapers

account.getWallPapers#c04cfac2 = Vector<WallPaper>;

func (*AccountServiceImpl) AccountRegisterDevice

func (s *AccountServiceImpl) AccountRegisterDevice(ctx context.Context, request *mtproto.TLAccountRegisterDevice) (*mtproto.Bool, error)

{"token_type":10,"token":"{\"endpoint\":\"https://android.googleapis.com/gcm/send/fFBQfzHLq0I:APA91bF28ucFXm7ZF2T7sf87dKAARGXHzdK3HbK0rrhJMmPZr42amq6B-QASi-mLzOzZ5qsynyvtEOSNNYbvadNKI5LCxmYMhQXkhoh_fpTB0GsYLBjwpElaV68OmTUzN-AFDgWuqMIpQH5XYDZoYQopg-yHHdsxcQ\",\"expirationTime\":null,\"keys\":{\"p256dh\":\"BJLqPVxd2KNAmW_izYz4ha5hN4ZEzXnNbk4__FC-xhmaa2vZD3RRtvgPNphH8ZSM9wF4_vSTJZLzQ5Iv0byZxrY\",\"auth\":\"nBC8C_1cvhSTlEEelbk9kw\"}}","app_sandbox":{"constructor":-1132882121,"data2":{}}} account.registerDevice#637ea878 token_type:int token:string = Bool;

func (*AccountServiceImpl) AccountRegisterDeviceLayer74

func (s *AccountServiceImpl) AccountRegisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountRegisterDeviceLayer74) (*mtproto.Bool, error)

Layer74 account.registerDevice#1389cc token_type:int token:string app_sandbox:Bool other_uids:Vector<int> = Bool;

func (*AccountServiceImpl) AccountReportPeer

func (s *AccountServiceImpl) AccountReportPeer(ctx context.Context, request *mtproto.TLAccountReportPeer) (*mtproto.Bool, error)
 Android client source code:
	if (ChatObject.isChannel(currentChat) && !currentChat.creator && (!currentChat.megagroup || currentChat.username != null && currentChat.username.length() > 0)) {
		headerItem.addSubItem(report, LocaleController.getString("ReportChat", R.string.ReportChat));
	}

account.reportPeer#ae189d5f peer:InputPeer reason:ReportReason = Bool;

func (*AccountServiceImpl) AccountResetAuthorization

func (s *AccountServiceImpl) AccountResetAuthorization(ctx context.Context, request *mtproto.TLAccountResetAuthorization) (*mtproto.Bool, error)

account.resetAuthorization#df77f3bc hash:long = Bool;

func (*AccountServiceImpl) AccountResetNotifySettings

func (s *AccountServiceImpl) AccountResetNotifySettings(ctx context.Context, request *mtproto.TLAccountResetNotifySettings) (*mtproto.Bool, error)

account.resetNotifySettings#db7e1747 = Bool;

func (*AccountServiceImpl) AccountSendChangePhoneCode

func (s *AccountServiceImpl) AccountSendChangePhoneCode(ctx context.Context, request *mtproto.TLAccountSendChangePhoneCode) (*mtproto.Auth_SentCode, error)

account.sendChangePhoneCode#8e57deb flags:# allow_flashcall:flags.0?true phone_number:string current_number:flags.0?Bool = auth.SentCode;

func (*AccountServiceImpl) AccountSendConfirmPhoneCode

func (s *AccountServiceImpl) AccountSendConfirmPhoneCode(ctx context.Context, request *mtproto.TLAccountSendConfirmPhoneCode) (*mtproto.Auth_SentCode, error)

account.sendConfirmPhoneCode#1516d7bd flags:# allow_flashcall:flags.0?true hash:string current_number:flags.0?Bool = auth.SentCode;

func (*AccountServiceImpl) AccountSetAccountTTL

func (s *AccountServiceImpl) AccountSetAccountTTL(ctx context.Context, request *mtproto.TLAccountSetAccountTTL) (*mtproto.Bool, error)

account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool;

func (*AccountServiceImpl) AccountSetPrivacy

account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector<InputPrivacyRule> = account.PrivacyRules;

func (*AccountServiceImpl) AccountUnregisterDevice

func (s *AccountServiceImpl) AccountUnregisterDevice(ctx context.Context, request *mtproto.TLAccountUnregisterDevice) (*mtproto.Bool, error)

account.unregisterDevice#65c55b40 token_type:int token:string = Bool;

func (*AccountServiceImpl) AccountUnregisterDeviceLayer74

func (s *AccountServiceImpl) AccountUnregisterDeviceLayer74(ctx context.Context, request *mtproto.TLAccountUnregisterDeviceLayer74) (*mtproto.Bool, error)

Layer74 account.unregisterDevice#3076c4bf token_type:int token:string other_uids:Vector<int> = Bool;

func (*AccountServiceImpl) AccountUpdateDeviceLocked

func (s *AccountServiceImpl) AccountUpdateDeviceLocked(ctx context.Context, request *mtproto.TLAccountUpdateDeviceLocked) (*mtproto.Bool, error)

account.updateDeviceLocked#38df3532 period:int = Bool;

func (*AccountServiceImpl) AccountUpdateNotifySettings

func (s *AccountServiceImpl) AccountUpdateNotifySettings(ctx context.Context, request *mtproto.TLAccountUpdateNotifySettings) (*mtproto.Bool, error)

account.updateNotifySettings#84be5b93 peer:InputNotifyPeer settings:InputPeerNotifySettings = Bool;

func (*AccountServiceImpl) AccountUpdatePasswordSettings

func (s *AccountServiceImpl) AccountUpdatePasswordSettings(ctx context.Context, request *mtproto.TLAccountUpdatePasswordSettings) (*mtproto.Bool, error)

account.updatePasswordSettings#fa7c4b86 current_password_hash:bytes new_settings:account.PasswordInputSettings = Bool;

func (*AccountServiceImpl) AccountUpdateProfile

func (s *AccountServiceImpl) AccountUpdateProfile(ctx context.Context, request *mtproto.TLAccountUpdateProfile) (*mtproto.User, error)

account.updateProfile#78515775 flags:# first_name:flags.0?string last_name:flags.1?string about:flags.2?string = User;

func (*AccountServiceImpl) AccountUpdateStatus

func (s *AccountServiceImpl) AccountUpdateStatus(ctx context.Context, request *mtproto.TLAccountUpdateStatus) (*mtproto.Bool, error)

account.updateStatus#6628562c offline:Bool = Bool;

func (*AccountServiceImpl) AccountUpdateUsername

func (s *AccountServiceImpl) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)

account.updateUsername#3e0bdd7c username:string = User;

Jump to

Keyboard shortcuts

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