public class TLSentCode extends TLObject
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLSentCode()
Instantiates a new TL sent code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
int |
getClassId()
Getting TL Class identification
|
TLAbsCodeType |
getNextType() |
String |
getPhoneCodeHash()
Gets phone code hash.
|
int |
getTimeout() |
TLAbsSentCodeType |
getType() |
boolean |
isPhoneRegistered() |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setNextType(TLAbsCodeType nextType) |
void |
setPhoneCodeHash(String phoneCodeHash)
Sets phone code hash.
|
void |
setTimeout(int timeout) |
void |
setType(TLAbsSentCodeType type) |
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public int getClassId()
TLObjectgetClassId in class TLObjectpublic String getPhoneCodeHash()
public boolean isPhoneRegistered()
public void setPhoneCodeHash(String phoneCodeHash)
phoneCodeHash - the phone code hashpublic TLAbsSentCodeType getType()
public void setType(TLAbsSentCodeType type)
public TLAbsCodeType getNextType()
public void setNextType(TLAbsCodeType nextType)
public int getTimeout()
public void setTimeout(int timeout)
public 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.