public class Tweet extends Object implements Identifiable
| Modifier and Type | Field and Description |
|---|---|
Card |
card
Nullable.
|
Coordinates |
coordinates
Nullable.
|
String |
createdAt
UTC time when this Tweet was created.
|
Object |
currentUserRetweet
Perspectival.
|
List<Integer> |
displayTextRange
An array of two unicode code point indices, identifying the inclusive start and exclusive end
of the displayable content of the Tweet.
|
TweetEntities |
entities
Entities which have been parsed out of the text of the Tweet.
|
TweetEntities |
extendedEntities
Additional entities such as multi photos, animated gifs and video.
|
Integer |
favoriteCount
Nullable.
|
boolean |
favorited
Nullable.
|
String |
filterLevel
Indicates the maximum value of the filter_level parameter which may be used and still stream
this Tweet.
|
long |
id
The integer representation of the unique identifier for this Tweet.
|
String |
idStr
The string representation of the unique identifier for this Tweet.
|
String |
inReplyToScreenName
Nullable.
|
long |
inReplyToStatusId
Nullable.
|
String |
inReplyToStatusIdStr
Nullable.
|
long |
inReplyToUserId
Nullable.
|
String |
inReplyToUserIdStr
Nullable.
|
static long |
INVALID_ID |
String |
lang
Nullable.
|
Place |
place
Nullable.
|
boolean |
possiblySensitive
Nullable.
|
Tweet |
quotedStatus
This field only surfaces when the Tweet is a quote Tweet.
|
long |
quotedStatusId
This field only surfaces when the Tweet is a quote Tweet.
|
String |
quotedStatusIdStr
This field only surfaces when the Tweet is a quote Tweet.
|
int |
retweetCount
Number of times this Tweet has been retweeted.
|
boolean |
retweeted
Perspectival.
|
Tweet |
retweetedStatus
Users can amplify the broadcast of tweets authored by other users by retweeting.
|
Object |
scopes
A set of key-value pairs indicating the intended contextual delivery of the containing Tweet.
|
String |
source
Utility used to post the Tweet, as an HTML-formatted string.
|
String |
text
The actual UTF-8 text of the status update.
|
boolean |
truncated
Indicates whether the value of the text parameter was truncated, for example, as a result of
a retweet exceeding the 140 character Tweet length.
|
User |
user
The user who posted this Tweet.
|
boolean |
withheldCopyright
When present and set to "true", it indicates that this piece of content has been withheld due
to a DMCA complaint.
|
List<String> |
withheldInCountries
When present, indicates a list of uppercase two-letter country codes this content is withheld
from.
|
String |
withheldScope
When present, indicates whether the content being withheld is the "status" or a "user."
|
| Constructor and Description |
|---|
Tweet(Coordinates coordinates,
String createdAt,
Object currentUserRetweet,
TweetEntities entities,
TweetEntities extendedEntities,
Integer favoriteCount,
boolean favorited,
String filterLevel,
long id,
String idStr,
String inReplyToScreenName,
long inReplyToStatusId,
String inReplyToStatusIdStr,
long inReplyToUserId,
String inReplyToUserIdStr,
String lang,
Place place,
boolean possiblySensitive,
Object scopes,
long quotedStatusId,
String quotedStatusIdStr,
Tweet quotedStatus,
int retweetCount,
boolean retweeted,
Tweet retweetedStatus,
String source,
String text,
List<Integer> displayTextRange,
boolean truncated,
User user,
boolean withheldCopyright,
List<String> withheldInCountries,
String withheldScope,
Card card) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getId()
Returns the id.
|
int |
hashCode() |
public static final long INVALID_ID
public final Coordinates coordinates
public final String createdAt
public final Object currentUserRetweet
public final TweetEntities entities
public final TweetEntities extendedEntities
public final Integer favoriteCount
public final boolean favorited
public final String filterLevel
public final long id
public final String idStr
public final String inReplyToScreenName
public final long inReplyToStatusId
public final String inReplyToStatusIdStr
public final long inReplyToUserId
public final String inReplyToUserIdStr
public final String lang
public final Place place
public final boolean possiblySensitive
public final Object scopes
public final long quotedStatusId
public final String quotedStatusIdStr
public final Tweet quotedStatus
public final int retweetCount
public final boolean retweeted
public final Tweet retweetedStatus
public final String source
public final String text
public final List<Integer> displayTextRange
public final boolean truncated
public final User user
public final boolean withheldCopyright
public final List<String> withheldInCountries
public final String withheldScope
public final Card card
public Tweet(Coordinates coordinates, String createdAt, Object currentUserRetweet, TweetEntities entities, TweetEntities extendedEntities, Integer favoriteCount, boolean favorited, String filterLevel, long id, String idStr, String inReplyToScreenName, long inReplyToStatusId, String inReplyToStatusIdStr, long inReplyToUserId, String inReplyToUserIdStr, String lang, Place place, boolean possiblySensitive, Object scopes, long quotedStatusId, String quotedStatusIdStr, Tweet quotedStatus, int retweetCount, boolean retweeted, Tweet retweetedStatus, String source, String text, List<Integer> displayTextRange, boolean truncated, User user, boolean withheldCopyright, List<String> withheldInCountries, String withheldScope, Card card)
public long getId()
IdentifiablegetId in interface Identifiablepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object