public class TLUpdateShortMessage extends TLAbsUpdates
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLUpdateShortMessage()
Instantiates a new TL update short message.
|
| 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.
|
TLVector<TLAbsMessageEntity> |
getEntities() |
int |
getFlags()
Gets flags.
|
TLMessageFwdHeader |
getFwdFrom() |
int |
getId()
Gets id.
|
String |
getMessage()
Gets message.
|
int |
getPts()
Gets pts.
|
int |
getPtsCount()
Gets pts count.
|
int |
getReplyToMsgId()
Gets reply to msg id.
|
int |
getUserId()
Gets from id.
|
int |
getViaBotId() |
boolean |
hasEntities() |
boolean |
hasText()
Check if the message has text content
|
boolean |
isForwarded() |
boolean |
isMention() |
boolean |
isReply() |
boolean |
isSent()
Is sent.
|
boolean |
isUnreadContent() |
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setDate(int date)
Sets date.
|
void |
setEntities(TLVector<TLAbsMessageEntity> entities) |
void |
setFlags(int flags)
Sets flags.
|
void |
setFwdFrom(TLMessageFwdHeader fwdFrom) |
void |
setId(int id)
Sets id.
|
void |
setMessage(String message)
Sets message.
|
void |
setPts(int pts)
Sets pts.
|
void |
setPtsCount(int ptsCount)
Sets pts count.
|
void |
setReplyToMsgId(int replyToMsgId)
Sets reply to msg id.
|
void |
setUserId(int userId)
Sets from id.
|
void |
setViaBotId(int viaBotId) |
String |
toString()
Custom toString method
|
deserialize, serialize, serializepublic static final int CLASS_ID
public TLUpdateShortMessage()
public int getId()
public void setId(int id)
id - the idpublic int getUserId()
public void setUserId(int userId)
userId - the from idpublic String getMessage()
public void setMessage(String message)
message - the messagepublic int getPts()
public void setPts(int pts)
pts - the ptspublic int getDate()
public void setDate(int date)
date - the datepublic int getFlags()
public void setFlags(int flags)
flags - the flagspublic int getPtsCount()
public void setPtsCount(int ptsCount)
ptsCount - the pts countpublic TLMessageFwdHeader getFwdFrom()
public void setFwdFrom(TLMessageFwdHeader fwdFrom)
public int getReplyToMsgId()
public void setReplyToMsgId(int replyToMsgId)
replyToMsgId - the reply to msg idpublic TLVector<TLAbsMessageEntity> getEntities()
public void setEntities(TLVector<TLAbsMessageEntity> entities)
public int getViaBotId()
public void setViaBotId(int viaBotId)
public boolean hasText()
public boolean isForwarded()
public boolean isReply()
public boolean isSent()
public boolean isMention()
public boolean isUnreadContent()
public boolean hasEntities()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic 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.