public class Tweet extends TwitterObject implements Serializable
Constructor and Description |
---|
Tweet(long id,
String text,
Date createdAt,
String fromUser,
String profileImageUrl,
Long toUserId,
long fromUserId,
String languageCode,
String source)
Deprecated.
Use other constructor with String ID instead.
|
Tweet(long id,
String idStr,
String text,
Date createdAt,
String fromUser,
String profileImageUrl,
Long toUserId,
long fromUserId,
String languageCode,
String source)
Deprecated.
Use other constructor with String ID instead.
|
add, getExtraData
@Deprecated public Tweet(long id, String text, Date createdAt, String fromUser, String profileImageUrl, Long toUserId, long fromUserId, String languageCode, String source)
id
- The tweet's IDtext
- The tweet's textcreatedAt
- Date Tweet was createdfromUser
- The username of the author of the tweet.profileImageUrl
- The URL to the profile picture of the tweet's author.toUserId
- The user ID of the user to whom the tweet is targeted.fromUserId
- The user ID of the tweet's author.languageCode
- The language codesource
- The source of the tweet.public Tweet(long id, String idStr, String text, Date createdAt, String fromUser, String profileImageUrl, Long toUserId, long fromUserId, String languageCode, String source)
id
- The tweet's IDidStr
- The tweet's ID as a Stringtext
- The tweet's textcreatedAt
- Date Tweet was createdfromUser
- The username of the author of the tweet.profileImageUrl
- The URL to the profile picture of the tweet's author.toUserId
- The user ID of the user to whom the tweet is targeted.fromUserId
- The user ID of the tweet's author.languageCode
- The language codesource
- The source of the tweet.public String getText()
getUnmodifiedText()
.public String getUnmodifiedText()
getText()
.public Date getCreatedAt()
public String getFromUser()
public void setFromUser(String fromUser)
public long getId()
public String getIdStr()
public String getProfileImageUrl()
public void setProfileImageUrl(String profileImageUrl)
public Long getToUserId()
public void setToUserId(Long toUserId)
public long getFromUserId()
public void setInReplyToStatusId(Long inReplyToStatusId)
public Long getInReplyToStatusId()
public void setFromUserId(long fromUserId)
public String getLanguageCode()
public void setLanguageCode(String languageCode)
public String getSource()
public void setSource(String source)
public void setRetweetCount(Integer retweetCount)
public Integer getRetweetCount()
public void setRetweeted(boolean retweeted)
public boolean isRetweeted()
public Tweet getRetweetedStatus()
public void setRetweetedStatus(Tweet tweet)
public boolean isRetweet()
public void setFavorited(boolean favorited)
public boolean isFavorited()
public void setFavoriteCount(Integer favoriteCount)
public Integer getFavoriteCount()
public Entities getEntities()
public void setEntities(Entities ent)
public boolean hasMentions()
public boolean hasMedia()
public boolean hasUrls()
public boolean hasTags()
public TwitterProfile getUser()
public void setUser(TwitterProfile prof)
public Long getInReplyToUserId()
public void setInReplyToUserId(Long inReplyToUserId)
public String getInReplyToScreenName()
public void setInReplyToScreenName(String inReplyToScreenName)