public class TLRequestContactsResolveUsername extends TLMethod<TLResolvedPeer>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLRequestContactsResolveUsername()
Instantiates a new TL request contacts resolve username.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLResolvedPeer |
deserializeResponse(InputStream stream,
TLContext context) |
int |
getClassId()
Getting TL Class identification
|
String |
getUsername()
Gets username.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setUsername(String username)
Sets username.
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic static final int CLASS_ID
public TLRequestContactsResolveUsername()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic TLResolvedPeer deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<TLResolvedPeer>IOExceptionpublic String getUsername()
public void setUsername(String username)
username - the usernamepublic 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.