public class TLMessageService extends TLAbsMessage
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLMessageService()
Instantiates a new TL message service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLAbsMessageAction |
getAction()
Gets action.
|
int |
getChatId() |
int |
getClassId()
Getting TL Class identification
|
int |
getDate()
Gets date.
|
int |
getFlags()
Gets flags.
|
int |
getFromId()
Gets from id.
|
int |
getId()
Gets id.
|
int |
getReplyToMessageId() |
TLAbsPeer |
getToId()
Gets to id.
|
boolean |
hasFromId() |
boolean |
isMention() |
boolean |
isPost() |
boolean |
isSent()
Is sent.
|
boolean |
isSilent() |
boolean |
isUnreadContent() |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setAction(TLAbsMessageAction action)
Sets action.
|
void |
setDate(int date)
Sets date.
|
void |
setFlags(int flags)
Sets flags.
|
void |
setFromId(int fromId)
Sets from id.
|
void |
setId(int id)
Sets id.
|
void |
setReplyToMessageId(int replyToMessageId) |
void |
setToId(TLAbsPeer toId)
Sets to id.
|
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public TLMessageService()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic int getFlags()
public void setFlags(int flags)
flags - the flagspublic TLAbsMessageAction getAction()
public void setAction(TLAbsMessageAction action)
action - the actionpublic int getDate()
public void setDate(int date)
date - the datepublic TLAbsPeer getToId()
public int getChatId()
getChatId in class TLAbsMessagepublic void setToId(TLAbsPeer toId)
toId - the to idpublic int getFromId()
public void setFromId(int fromId)
fromId - the from idpublic int getId()
public void setId(int id)
id - the idpublic int getReplyToMessageId()
public void setReplyToMessageId(int replyToMessageId)
public boolean hasFromId()
public boolean isPost()
public boolean isSilent()
public boolean isUnreadContent()
public boolean isSent()
public boolean isMention()
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.