Spring Social Twitter

org.springframework.social.twitter.api
Class Tweet

java.lang.Object
  extended by 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)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Date getCreatedAt()
           
 Entities getEntities()
           
 java.lang.String getFromUser()
           
 long getFromUserId()
           
 long getId()
           
 java.lang.String getInReplyToScreenName()
           
 java.lang.Long getInReplyToStatusId()
           
 java.lang.Long getInReplyToUserId()
           
 java.lang.String getLanguageCode()
           
 java.lang.String getProfileImageUrl()
           
 java.lang.Integer getRetweetCount()
          The number of times this tweet has been retweeted.
 Tweet getRetweetedStatus()
           
 java.lang.String getSource()
           
 java.lang.String getText()
           
 java.lang.Long getToUserId()
           
 TwitterProfile getUser()
           
 int hashCode()
           
 boolean hasMedia()
           
 boolean hasMentions()
           
 boolean hasTags()
           
 boolean hasUrls()
           
 boolean isFavorited()
           
 boolean isRetweet()
           
 boolean isRetweeted()
           
 void setEntities(Entities ent)
           
 void setFavorited(boolean favorited)
           
 void setFromUser(java.lang.String fromUser)
           
 void setFromUserId(long fromUserId)
           
 void setInReplyToScreenName(java.lang.String inReplyToScreenName)
           
 void setInReplyToStatusId(java.lang.Long inReplyToStatusId)
           
 void setInReplyToUserId(java.lang.Long inReplyToUserId)
           
 void setLanguageCode(java.lang.String languageCode)
           
 void setProfileImageUrl(java.lang.String profileImageUrl)
           
 void setRetweetCount(java.lang.Integer retweetCount)
           
 void setRetweeted(boolean retweeted)
           
 void setRetweetedStatus(Tweet tweet)
           
 void setSource(java.lang.String source)
           
 void setToUserId(java.lang.Long toUserId)
           
 void setUser(TwitterProfile prof)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

Spring Social Twitter