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, getRateLimitStatus
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAccessLevel, getRateLimitStatus
private 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
TwitterException
DirectMessageJSONImpl(JSONObject json) throws TwitterException
TwitterException
private void init(JSONObject json) throws TwitterException
TwitterException
public long getId()
getId
in interface DirectMessage
public java.lang.String getText()
getText
in interface DirectMessage
public long getSenderId()
getSenderId
in interface DirectMessage
public long getRecipientId()
getRecipientId
in interface DirectMessage
public java.util.Date getCreatedAt()
getCreatedAt
in interface DirectMessage
public java.lang.String getSenderScreenName()
getSenderScreenName
in interface DirectMessage
public java.lang.String getRecipientScreenName()
getRecipientScreenName
in interface DirectMessage
public User getSender()
getSender
in interface DirectMessage
public User getRecipient()
getRecipient
in interface DirectMessage
public UserMentionEntity[] getUserMentionEntities()
getUserMentionEntities
in interface EntitySupport
public URLEntity[] getURLEntities()
getURLEntities
in interface EntitySupport
public HashtagEntity[] getHashtagEntities()
getHashtagEntities
in interface EntitySupport
public MediaEntity[] getMediaEntities()
getMediaEntities
in interface EntitySupport
public SymbolEntity[] getSymbolEntities()
getSymbolEntities
in interface EntitySupport
static ResponseList<DirectMessage> createDirectMessageList(HttpResponse res, Configuration conf) throws TwitterException
TwitterException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object