Package com.jtelegram.api.message.entity
Class MessageEntity
- java.lang.Object
-
- com.jtelegram.api.message.entity.MessageEntity
-
- Direct Known Subclasses:
TextLinkMessageEntity
,TextMentionMessageEntity
,UnsupportedMessageEntity
public class MessageEntity extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageEntity.Deserializer
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
content
protected int
length
protected int
offset
protected MessageEntityType
type
-
Constructor Summary
Constructors Constructor Description MessageEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getContent()
int
getLength()
int
getOffset()
MessageEntityType
getType()
int
hashCode()
java.lang.String
toString()
void
updateContent(java.lang.String text)
-
-
-
Field Detail
-
type
protected MessageEntityType type
-
offset
protected int offset
-
length
protected int length
-
content
protected java.lang.String content
-
-
Method Detail
-
updateContent
public void updateContent(java.lang.String text)
-
getType
public MessageEntityType getType()
-
getOffset
public int getOffset()
-
getLength
public int getLength()
-
getContent
public java.lang.String getContent()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-