public class Activity extends Resource
Handling Activity Streams is beyond the scope of this library. However, this class gives basic access to the Activity Stream item.
Modifier and Type | Class and Description |
---|---|
static class |
Activity.Type
Available activity types.
|
Constructor and Description |
---|
Activity(FlattrObject data) |
Modifier and Type | Method and Description |
---|---|
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.
|
toFlattrObject, toJSON
public Activity(FlattrObject data)
public Date getPublished()
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 propertyCopyright © 2010–2017. All rights reserved.