uk.ac.cam.juliet.twitter.model
Class Tweet

java.lang.Object
  extended by uk.ac.cam.juliet.twitter.model.Tweet
Direct Known Subclasses:
PoisonTweet

public class Tweet
extends java.lang.Object

represents a tweet from Twitter

Author:
Ahmad Akra

Field Summary
 java.util.Date createdAt
          the time this tweet was created
 java.math.BigInteger id
          the id of this tweet (comes from twitter)
 int retweetCount
          the number of times this tweet has been retweeted
 java.lang.String text
          the text of the tweet
 User user
          the creator of this tweet
 
Constructor Summary
Tweet(User user, java.lang.String text, java.math.BigInteger id, java.util.Date createdAt)
          constructor of the tweet
Tweet(User user, java.lang.String text, java.lang.Integer id, java.util.Date createdAt)
          constructor of the tweet
Tweet(User user, java.lang.String text, java.lang.Long id, java.util.Date createdAt)
          constructor of the tweet
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public java.lang.String text
the text of the tweet


retweetCount

public int retweetCount
the number of times this tweet has been retweeted


user

public User user
the creator of this tweet


id

public java.math.BigInteger id
the id of this tweet (comes from twitter)


createdAt

public java.util.Date createdAt
the time this tweet was created

Constructor Detail

Tweet

public Tweet(User user,
             java.lang.String text,
             java.math.BigInteger id,
             java.util.Date createdAt)
constructor of the tweet

Parameters:
user - the creator of the tweet
text - the text of the tweet
id - the tweet id
createdAt - the creation time of this tweet

Tweet

public Tweet(User user,
             java.lang.String text,
             java.lang.Integer id,
             java.util.Date createdAt)
constructor of the tweet

Parameters:
user - the creator of the tweet
text - the text of the tweet
id - the tweet id
createdAt - the creation time of this tweet

Tweet

public Tweet(User user,
             java.lang.String text,
             java.lang.Long id,
             java.util.Date createdAt)
constructor of the tweet

Parameters:
user - the creator of the tweet
text - the text of the tweet
id - the tweet id
createdAt - the creation time of this tweet