public class Subscription extends Resource implements ThingId
This class is not threadsafe.
| Constructor and Description |
|---|
Subscription(FlattrObject data) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreated()
Creation date of the subscription.
|
Date |
getStarted()
Starting date of the subscription.
|
Thing |
getThing()
The thing that was flattred.
|
String |
getThingId()
Returns the Thing's ID.
|
boolean |
isActive()
true if the subscription is currently active, false if it is
paused. |
toFlattrObject, toJSONpublic Subscription(FlattrObject data)
public Thing getThing()
public String getThingId()
ThingIdgetThingId in interface ThingIdpublic Date getCreated()
public Date getStarted()
public boolean isActive()
true if the subscription is currently active, false if it is
paused.Copyright © 2010–2014. All rights reserved.