public class TLAuthorization extends TLObject
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLAuthorization()
Instantiates a new TL authorization.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
int |
getApiId()
Gets api id.
|
String |
getAppName()
Gets app name.
|
String |
getAppVersion()
Gets app version.
|
int |
getClassId()
Getting TL Class identification
|
String |
getCountry()
Gets country.
|
int |
getDateActive()
Gets date active.
|
int |
getDateCreated()
Gets date created.
|
String |
getDeviceModel()
Gets device model.
|
int |
getFlags()
Gets flags.
|
long |
getHash()
Gets hash.
|
String |
getIp()
Gets ip.
|
String |
getPlatform()
Gets platform.
|
String |
getRegion()
Gets region.
|
String |
getSystemVersion()
Gets system version.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setApiId(int apiId)
Sets api id.
|
void |
setAppName(String appName)
Sets app name.
|
void |
setAppVersion(String appVersion)
Sets app version.
|
void |
setCountry(String country)
Sets country.
|
void |
setDateActive(int dateActive)
Sets date active.
|
void |
setDateCreated(int dateCreated)
Sets date created.
|
void |
setDeviceModel(String deviceModel)
Sets device model.
|
void |
setFlags(int flags)
Sets flags.
|
void |
setHash(long hash)
Sets hash.
|
void |
setIp(String ip)
Sets ip.
|
void |
setPlatform(String platform)
Sets platform.
|
void |
setRegion(String region)
Sets region.
|
void |
setSystemVersion(String systemVersion)
Sets system version.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public int getClassId()
TLObjectgetClassId in class TLObjectpublic long getHash()
public void setHash(long hash)
hash - the hashpublic int getFlags()
public void setFlags(int flags)
flags - the flagspublic String getDeviceModel()
public void setDeviceModel(String deviceModel)
deviceModel - the device modelpublic String getPlatform()
public void setPlatform(String platform)
platform - the platformpublic String getSystemVersion()
public void setSystemVersion(String systemVersion)
systemVersion - the system versionpublic int getApiId()
public void setApiId(int apiId)
apiId - the api idpublic String getAppName()
public void setAppName(String appName)
appName - the app namepublic String getAppVersion()
public void setAppVersion(String appVersion)
appVersion - the app versionpublic int getDateCreated()
public void setDateCreated(int dateCreated)
dateCreated - the date createdpublic int getDateActive()
public void setDateActive(int dateActive)
dateActive - the date activepublic String getIp()
public void setIp(String ip)
ip - the ippublic String getCountry()
public void setCountry(String country)
country - the countrypublic String getRegion()
public void setRegion(String region)
region - the regionpublic void serializeBody(OutputStream stream) throws IOException
TLObjectserializeBody in class TLObjectstream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObjectdeserializeBody in class TLObjectstream - source streamcontext - tl contextIOExceptionCopyright © 2017. All rights reserved.