public class TLRequestAuthSendCode extends TLMethod<TLSentCode>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLRequestAuthSendCode()
Instantiates a new TL request auth send code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLSentCode |
deserializeResponse(InputStream stream,
TLContext context) |
String |
getApiHash()
Gets api hash.
|
int |
getApiId()
Gets api id.
|
int |
getClassId()
Getting TL Class identification
|
String |
getPhoneNumber()
Gets phone number.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setApiHash(String value)
Sets api hash.
|
void |
setApiId(int value)
Sets api id.
|
void |
setPhoneNumber(String value)
Sets phone number.
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic static final int CLASS_ID
public TLRequestAuthSendCode()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic TLSentCode deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<TLSentCode>IOExceptionpublic String getPhoneNumber()
public void setPhoneNumber(String value)
value - the valuepublic int getApiId()
public void setApiId(int value)
value - the valuepublic String getApiHash()
public void setApiHash(String 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 © 2016. All rights reserved.