public class MessageEntityImpl extends Object implements MessageEntity
| Modifier and Type | Method and Description |
|---|---|
static MessageEntity |
createMessageEntity(org.json.JSONObject jsonObject) |
int |
getLength()
Gets the length of the entity in UTF-16 code units
|
int |
getOffset()
Gets the offset in UTF-16 code units to the start of the entity
|
MessageEntityType |
getType()
Gets the MessageEntityType that this MessageEntity relates to.
|
String |
getUrl()
Gets the URL that the MessageEntity refers to.
|
User |
getUser()
Gets the User that the MessageEntity refers to.
|
public static MessageEntity createMessageEntity(org.json.JSONObject jsonObject)
public MessageEntityType getType()
MessageEntitygetType in interface MessageEntitypublic int getOffset()
MessageEntitygetOffset in interface MessageEntitypublic int getLength()
MessageEntitygetLength in interface MessageEntitypublic String getUrl()
MessageEntitygetUrl in interface MessageEntitypublic User getUser()
MessageEntitygetUser in interface MessageEntityCopyright © 2017. All rights reserved.