|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwinterwell.jtwitter.TwitterEvent
public class TwitterEvent
| Nested Class Summary | |
|---|---|
static interface |
TwitterEvent.Type
|
| Field Summary | |
|---|---|
java.util.Date |
createdAt
|
User |
source
The user who initiated the event |
User |
target
The user who was affected, or who owns the affected object. |
java.lang.String |
type
What type of event this is. |
| Constructor Summary | |
|---|---|
TwitterEvent(winterwell.json.JSONObject jo,
Twitter jtwit)
|
|
| Method Summary | |
|---|---|
java.util.Date |
getCreatedAt()
|
User |
getSource()
The user who initiated the event |
User |
getTarget()
The user who was affected, or who owns the affected object. |
java.lang.Object |
getTargetObject()
The affected object, if not a user. |
java.lang.String |
getType()
|
boolean |
is(java.lang.String type)
Convenience method for filtering events. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.util.Date createdAt
public final User source
public final User target
public final java.lang.String type
TwitterEvent.Type constants for known definitions.
| Constructor Detail |
|---|
public TwitterEvent(winterwell.json.JSONObject jo,
Twitter jtwit)
throws winterwell.json.JSONException
winterwell.json.JSONException| Method Detail |
|---|
public java.util.Date getCreatedAt()
public User getSource()
public User getTarget()
public java.lang.Object getTargetObject()
public java.lang.String getType()
public boolean is(java.lang.String type)
TwitterEvent event use
event.is(TwitterEvent.Type.FOLLOW) to pick out follow
events.
type -
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||