public class TLRequestInitConnection extends TLMethod<TLObject>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLRequestInitConnection()
Instantiates a new TL request init connection.
|
TLRequestInitConnection(int apiId,
String deviceModel,
String systemVersion,
String appVersion,
String langCode,
TLMethod query)
Instantiates a new TL request init connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLObject |
deserializeResponse(InputStream stream,
TLContext context) |
int |
getApiId()
Gets api id.
|
String |
getAppVersion()
Gets app version.
|
int |
getClassId()
Getting TL Class identification
|
String |
getDeviceModel()
Gets device model.
|
String |
getLangCode()
Gets lang code.
|
TLMethod |
getQuery()
Gets query.
|
String |
getSystemVersion()
Gets system version.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setApiId(int value)
Sets api id.
|
void |
setAppVersion(String value)
Sets app version.
|
void |
setDeviceModel(String value)
Sets device model.
|
void |
setLangCode(String value)
Sets lang code.
|
void |
setQuery(TLMethod value)
Sets query.
|
void |
setSystemVersion(String value)
Sets system version.
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic static final int CLASS_ID
public TLRequestInitConnection()
public TLRequestInitConnection(int apiId,
String deviceModel,
String systemVersion,
String appVersion,
String langCode,
TLMethod query)
apiId - the api iddeviceModel - the device modelsystemVersion - the system versionappVersion - the app versionlangCode - the lang codequery - the querypublic int getClassId()
TLObjectgetClassId in class TLObjectpublic TLObject deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<TLObject>IOExceptionpublic int getApiId()
public void setApiId(int value)
value - the valuepublic String getDeviceModel()
public void setDeviceModel(String value)
value - the valuepublic String getSystemVersion()
public void setSystemVersion(String value)
value - the valuepublic String getAppVersion()
public void setAppVersion(String value)
value - the valuepublic String getLangCode()
public void setLangCode(String value)
value - the valuepublic TLMethod getQuery()
public void setQuery(TLMethod value)
value - the valuepublic 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.