|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shredzone.flattr4j.model.Resource org.shredzone.flattr4j.model.Activity
public class Activity
Represents a single activity.
Handling Activity Streams is beyond the scope of this library. However, this class gives basic access to the Activity Stream item.
Nested Class Summary | |
---|---|
static class |
Activity.Type
Available activity types. |
Field Summary |
---|
Fields inherited from class org.shredzone.flattr4j.model.Resource |
---|
data |
Constructor Summary | |
---|---|
Activity(FlattrObject data)
|
Method Summary | |
---|---|
String |
getActivityId()
Returns a unique activity ID. |
String |
getActor(String key)
Gets a property of the "Actor" object. |
String |
getObject(String key)
Gets a property of the "Object" object. |
Date |
getPublished()
Returns the activity publication date. |
String |
getTitle()
Returns the activity title. |
String |
getVerb()
Returns the activity verb. |
Methods inherited from class org.shredzone.flattr4j.model.Resource |
---|
toFlattrObject, toJSON |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Activity(FlattrObject data)
Method Detail |
---|
public Date getPublished()
public String getTitle()
public String getVerb()
public String getActivityId()
public String getActor(String key)
key
- property name (e.g. "objectType", "url", "displayName")
null
if there is no such propertypublic String getObject(String key)
key
- property name (e.g. "objectType", "url", "displayName")
null
if there is no such property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |