final class DirectMessageJSONImpl extends TwitterResponseImpl implements DirectMessage, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
createdAt |
private HashtagEntity[] |
hashtagEntities |
private long |
id |
private MediaEntity[] |
mediaEntities |
private User |
recipient |
private long |
recipientId |
private java.lang.String |
recipientScreenName |
private User |
sender |
private long |
senderId |
private java.lang.String |
senderScreenName |
private static long |
serialVersionUID |
private SymbolEntity[] |
symbolEntities |
private java.lang.String |
text |
private URLEntity[] |
urlEntities |
private UserMentionEntity[] |
userMentionEntities |
NONE, READ, READ_WRITE, READ_WRITE_DIRECTMESSAGES| Constructor and Description |
|---|
DirectMessageJSONImpl(HttpResponse res,
Configuration conf) |
DirectMessageJSONImpl(JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static ResponseList<DirectMessage> |
createDirectMessageList(HttpResponse res,
Configuration conf) |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreatedAt() |
HashtagEntity[] |
getHashtagEntities()
Returns an array if hashtag mentioned in the tweet.
|
long |
getId() |
MediaEntity[] |
getMediaEntities()
Returns an array of MediaEntities if medias are available in the tweet.
|
User |
getRecipient() |
long |
getRecipientId() |
java.lang.String |
getRecipientScreenName() |
User |
getSender() |
long |
getSenderId() |
java.lang.String |
getSenderScreenName() |
SymbolEntity[] |
getSymbolEntities()
Returns an array of SymbolEntities if medias are available in the tweet.
|
java.lang.String |
getText() |
URLEntity[] |
getURLEntities()
Returns an array if URLEntity mentioned in the tweet.
|
UserMentionEntity[] |
getUserMentionEntities()
Returns an array of user mentions in the tweet.
|
int |
hashCode() |
private void |
init(JSONObject json) |
java.lang.String |
toString() |
getAccessLevel, getRateLimitStatusclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAccessLevel, getRateLimitStatusprivate static final long serialVersionUID
private long id
private java.lang.String text
private long senderId
private long recipientId
private java.util.Date createdAt
private java.lang.String senderScreenName
private java.lang.String recipientScreenName
private UserMentionEntity[] userMentionEntities
private URLEntity[] urlEntities
private HashtagEntity[] hashtagEntities
private MediaEntity[] mediaEntities
private SymbolEntity[] symbolEntities
private User sender
private User recipient
DirectMessageJSONImpl(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionDirectMessageJSONImpl(JSONObject json) throws TwitterException
TwitterExceptionprivate void init(JSONObject json) throws TwitterException
TwitterExceptionpublic long getId()
getId in interface DirectMessagepublic java.lang.String getText()
getText in interface DirectMessagepublic long getSenderId()
getSenderId in interface DirectMessagepublic long getRecipientId()
getRecipientId in interface DirectMessagepublic java.util.Date getCreatedAt()
getCreatedAt in interface DirectMessagepublic java.lang.String getSenderScreenName()
getSenderScreenName in interface DirectMessagepublic java.lang.String getRecipientScreenName()
getRecipientScreenName in interface DirectMessagepublic User getSender()
getSender in interface DirectMessagepublic User getRecipient()
getRecipient in interface DirectMessagepublic UserMentionEntity[] getUserMentionEntities()
getUserMentionEntities in interface EntitySupportpublic URLEntity[] getURLEntities()
getURLEntities in interface EntitySupportpublic HashtagEntity[] getHashtagEntities()
getHashtagEntities in interface EntitySupportpublic MediaEntity[] getMediaEntities()
getMediaEntities in interface EntitySupportpublic SymbolEntity[] getSymbolEntities()
getSymbolEntities in interface EntitySupportstatic ResponseList<DirectMessage> createDirectMessageList(HttpResponse res, Configuration conf) throws TwitterException
TwitterExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object