public interface AbsApiState
| Modifier and Type | Method and Description |
|---|---|
void |
doAuth(TLAuthorization authorization) |
byte[] |
getAuthKey(int dcId)
Get auth key.
|
ConnectionInfo[] |
getAvailableConnections(int dcId)
Get available connections.
|
AbsMTProtoState |
getMtProtoState(int dcId)
Gets mt proto state.
|
int |
getPrimaryDc()
Gets primary dc.
|
int |
getUserId() |
boolean |
isAuthenticated()
Is authenticated in primary dc
|
boolean |
isAuthenticated(int dcId)
Is authenticated.
|
void |
putAuthKey(int dcId,
byte[] key)
Put auth key.
|
void |
reset()
Reset void.
|
void |
resetAuth()
Reset auth.
|
void |
setAuthenticated(int dcId,
boolean auth)
Sets authenticated.
|
void |
setPrimaryDc(int dc)
Sets primary dc.
|
void |
updateSettings(TLConfig config)
Update settings.
|
int getPrimaryDc()
void setPrimaryDc(int dc)
dc - the dcboolean isAuthenticated()
boolean isAuthenticated(int dcId)
dcId - the dc idvoid setAuthenticated(int dcId,
boolean auth)
dcId - the dc idauth - the authvoid updateSettings(TLConfig config)
config - the configbyte[] getAuthKey(int dcId)
dcId - the dc idvoid putAuthKey(int dcId,
byte[] key)
dcId - the dc idkey - the keyConnectionInfo[] getAvailableConnections(int dcId)
dcId - the dc idAbsMTProtoState getMtProtoState(int dcId)
dcId - the dc idvoid doAuth(TLAuthorization authorization)
void resetAuth()
void reset()
int getUserId()
Copyright © 2016. All rights reserved.