winterwell.jtwitter
Class Twitter.Status

java.lang.Object
  extended by winterwell.jtwitter.Twitter.Status
All Implemented Interfaces:
Twitter.ITweet
Enclosing class:
Twitter

public static final class Twitter.Status
extends java.lang.Object
implements Twitter.ITweet

A Twitter status post. .toString() returns the status text.

Notes: This is a finalised data object. It exposes its fields for convenient access. If you want to change your status, use Twitter.setStatus(String) and Twitter.destroyStatus(Status).


Field Summary
 java.util.Date createdAt
           
 java.lang.String geo
           
 long id
           
 java.lang.Long inReplyToStatusId
          Often null.
 java.lang.String source
          E.g.
 java.lang.String text
          The actual status text.
 Twitter.User user
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Date getCreatedAt()
           
 java.lang.String getGeo()
           
 long getId()
           
 java.util.List<java.lang.String> getMentions()
           
 java.lang.String getText()
          The actual status text.
 Twitter.User getUser()
          The User who made the tweet
 int hashCode()
           
 boolean isFavorite()
          true if this has been marked as a favourite by the authenticating user
 void setGeo(java.lang.String geo)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

createdAt

public final java.util.Date createdAt

geo

public java.lang.String geo

id

public final long id

inReplyToStatusId

public final java.lang.Long inReplyToStatusId
Often null. This is the in-reply-to status id as reported by Twitter. Strangely they don't report this for messages.


source

public final java.lang.String source
E.g. "web" vs. "im"


text

public final java.lang.String text
The actual status text.


user

public final Twitter.User user
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getCreatedAt

public java.util.Date getCreatedAt()
Specified by:
getCreatedAt in interface Twitter.ITweet

getGeo

public java.lang.String getGeo()

getId

public long getId()
Specified by:
getId in interface Twitter.ITweet
Returns:
The Twitter id for this post. This is used by some API methods.

getMentions

public java.util.List<java.lang.String> getMentions()
Returns:
list of \@mentioned people (there is no guarantee that these mentions are for correct Twitter screen-names). May be empty, never null. Screen-names are always lowercased.

getText

public java.lang.String getText()
The actual status text. This is also returned by toString()

Specified by:
getText in interface Twitter.ITweet

getUser

public Twitter.User getUser()
Description copied from interface: Twitter.ITweet
The User who made the tweet

Specified by:
getUser in interface Twitter.ITweet

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isFavorite

public boolean isFavorite()
true if this has been marked as a favourite by the authenticating user


setGeo

public void setGeo(java.lang.String geo)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The text of this status. E.g. "Kicking fommil's arse at Civilisation."


Copyright © 2014 gvSIG Association. All Rights Reserved.