|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object winterwell.jtwitter.Twitter.Message
public static final class Twitter.Message
A Twitter direct message. Fields are null if unset. TODO are there more fields now? check the raw json
Field Summary | |
---|---|
java.lang.Number |
inReplyToMessageId
Equivalent to Twitter.Status.inReplyToStatusId *but null by default*. |
java.lang.String |
text
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests by class=Message and tweet id number |
java.util.Date |
getCreatedAt()
|
java.lang.Long |
getId()
Twitter IDs are numbers - but they can exceed the range of Java's signed long. |
Twitter.User |
getRecipient()
|
Twitter.User |
getSender()
|
java.lang.String |
getText()
The actual status text. |
Twitter.User |
getUser()
This is equivalent to getSender() |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.Number inReplyToMessageId
Twitter.Status.inReplyToStatusId
*but null by default*.
If you want to use this, you must set it yourself. The field is just
a convenient storage place. Strangely Twitter don't report the
previous ID for messages.
public final java.lang.String text
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Date getCreatedAt()
getCreatedAt
in interface Twitter.ITweet
public java.lang.Long getId()
Twitter.ITweet
getId
in interface Twitter.ITweet
Note: this may switch to BigInteger in the future, if Twitter change their id numbering scheme. Use Number (which is a super-class for both Long and BigInteger) if you wish to future-proof your code.
public Twitter.User getRecipient()
public Twitter.User getSender()
public java.lang.String getText()
Twitter.ITweet
Object.toString()
getText
in interface Twitter.ITweet
public Twitter.User getUser()
getSender()
getUser
in interface Twitter.ITweet
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |