|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Twitter.ITweet
This gives common access to features that are common to both
Messages and Statuses.
| Method Summary | |
|---|---|
java.util.Date |
getCreatedAt()
|
java.lang.String |
getDisplayText()
|
java.lang.Number |
getId()
Twitter IDs are numbers - but they can exceed the range of Java's signed long. |
java.lang.String |
getLocation()
|
java.util.List<java.lang.String> |
getMentions()
|
Place |
getPlace()
|
java.lang.String |
getText()
The actual status text. |
java.util.List<Twitter.TweetEntity> |
getTweetEntities(Twitter.KEntityType type)
Twitter wrap urls with their own url-shortener (as a defence against malicious tweets). |
User |
getUser()
The User who made the tweet |
| Method Detail |
|---|
java.util.Date getCreatedAt()
java.lang.Number getId()
java.lang.String getLocation()
Note: This will be set if Twitter supply any geo-information. We extract a location from geo and place objects.
java.util.List<java.lang.String> getMentions()
Message.getRecipient().
Notes: This method is in ITweet as a convenience to allow the same code to process both Statuses and Messages where possible. It would be better named "getRecipients()", but for historical reasons it isn't.
Place getPlace()
java.lang.String getText()
Twitter.toString()
java.util.List<Twitter.TweetEntity> getTweetEntities(Twitter.KEntityType type)
Entity support is off by default. Request entity support by setting
Twitter.setIncludeTweetEntities(boolean). Twitter do NOT
support entities for search :(
type - urls, user_mentions, or hashtags
User getUser()
java.lang.String getDisplayText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||