org.springframework.social.twitter.api
Class Tweet
java.lang.Object
org.springframework.social.twitter.api.Tweet
- All Implemented Interfaces:
- java.io.Serializable
public class Tweet
- extends java.lang.Object
- implements java.io.Serializable
Represents a Twitter status update (e.g., a "tweet").
- Author:
- Craig Walls
- See Also:
- Serialized Form
Constructor Summary |
Tweet(long id,
java.lang.String text,
java.util.Date createdAt,
java.lang.String fromUser,
java.lang.String profileImageUrl,
java.lang.Long toUserId,
long fromUserId,
java.lang.String languageCode,
java.lang.String source)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Tweet
public Tweet(long id,
java.lang.String text,
java.util.Date createdAt,
java.lang.String fromUser,
java.lang.String profileImageUrl,
java.lang.Long toUserId,
long fromUserId,
java.lang.String languageCode,
java.lang.String source)
getText
public java.lang.String getText()
getCreatedAt
public java.util.Date getCreatedAt()
getFromUser
public java.lang.String getFromUser()
setFromUser
public void setFromUser(java.lang.String fromUser)
getId
public long getId()
getProfileImageUrl
public java.lang.String getProfileImageUrl()
setProfileImageUrl
public void setProfileImageUrl(java.lang.String profileImageUrl)
getToUserId
public java.lang.Long getToUserId()
setToUserId
public void setToUserId(java.lang.Long toUserId)
getFromUserId
public long getFromUserId()
setInReplyToStatusId
public void setInReplyToStatusId(java.lang.Long inReplyToStatusId)
getInReplyToStatusId
public java.lang.Long getInReplyToStatusId()
setFromUserId
public void setFromUserId(long fromUserId)
getLanguageCode
public java.lang.String getLanguageCode()
setLanguageCode
public void setLanguageCode(java.lang.String languageCode)
getSource
public java.lang.String getSource()
setSource
public void setSource(java.lang.String source)
setRetweetCount
public void setRetweetCount(java.lang.Integer retweetCount)
getRetweetCount
public java.lang.Integer getRetweetCount()
- The number of times this tweet has been retweeted.
Only available in timeline results.
getRetweetCount() will return null for Tweet objects returned in search results.
setRetweeted
public void setRetweeted(boolean retweeted)
isRetweeted
public boolean isRetweeted()
getRetweetedStatus
public Tweet getRetweetedStatus()
setRetweetedStatus
public void setRetweetedStatus(Tweet tweet)
isRetweet
public boolean isRetweet()
setFavorited
public void setFavorited(boolean favorited)
isFavorited
public boolean isFavorited()
getEntities
public Entities getEntities()
setEntities
public void setEntities(Entities ent)
hasMentions
public boolean hasMentions()
hasMedia
public boolean hasMedia()
hasUrls
public boolean hasUrls()
hasTags
public boolean hasTags()
getUser
public TwitterProfile getUser()
setUser
public void setUser(TwitterProfile prof)
getInReplyToUserId
public java.lang.Long getInReplyToUserId()
setInReplyToUserId
public void setInReplyToUserId(java.lang.Long inReplyToUserId)
getInReplyToScreenName
public java.lang.String getInReplyToScreenName()
setInReplyToScreenName
public void setInReplyToScreenName(java.lang.String inReplyToScreenName)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object