public class TLChat extends TLAbsChat
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLChat()
Instantiates a new TL chat.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
int |
getClassId()
Getting TL Class identification
|
int |
getDate()
Gets date.
|
int |
getFlags() |
TLAbsInputChannel |
getMigratedTo() |
int |
getParticipantsCount()
Gets participants count.
|
TLAbsChatPhoto |
getPhoto()
Gets photo.
|
String |
getTitle()
Gets title.
|
int |
getVersion()
Gets version.
|
boolean |
isForbidden() |
boolean |
isLeft() |
boolean |
isMigratedTo() |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setDate(int date)
Sets date.
|
void |
setFlags(int flags) |
void |
setMigratedTo(TLAbsInputChannel migratedTo) |
void |
setParticipantsCount(int participantsCount)
Sets participants count.
|
void |
setPhoto(TLAbsChatPhoto photo)
Sets photo.
|
void |
setTitle(String title)
Sets title.
|
void |
setVersion(int version)
Sets version.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public int getClassId()
TLObjectgetClassId in class TLObjectpublic String getTitle()
public void setTitle(String title)
title - the titlepublic int getDate()
public void setDate(int date)
date - the datepublic TLAbsChatPhoto getPhoto()
public void setPhoto(TLAbsChatPhoto photo)
photo - the photopublic int getParticipantsCount()
public void setParticipantsCount(int participantsCount)
participantsCount - the participants countpublic int getVersion()
public void setVersion(int version)
version - the versionpublic TLAbsInputChannel getMigratedTo()
public void setMigratedTo(TLAbsInputChannel migratedTo)
public int getFlags()
public void setFlags(int flags)
public boolean isLeft()
public boolean isForbidden()
public boolean isMigratedTo()
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 © 2017. All rights reserved.