org.shredzone.flattr4j.model
Class Flattr

java.lang.Object
  extended by org.shredzone.flattr4j.model.Resource
      extended by org.shredzone.flattr4j.model.Flattr
All Implemented Interfaces:
Serializable, ThingId, UserId

public class Flattr
extends Resource
implements ThingId, UserId

A Flattr that was made to a thing.

This class is not threadsafe.

Since:
2.0
Author:
Richard "Shred" Körber
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.shredzone.flattr4j.model.Resource
data
 
Constructor Summary
Flattr(FlattrObject data)
           
 
Method Summary
 Date getCreated()
           
 Thing getThing()
           
 String getThingId()
          Returns the Thing's ID.
 String getUserId()
          UserID of the user who flattred the thing.
 
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

Flattr

public Flattr(FlattrObject data)
Method Detail

getThing

public Thing getThing()

getCreated

public Date getCreated()

getThingId

public String getThingId()
Description copied from interface: ThingId
Returns the Thing's ID.

Specified by:
getThingId in interface ThingId
Returns:
Thing id

getUserId

public String getUserId()
UserID of the user who flattred the thing.

Specified by:
getUserId in interface UserId
Returns:
User id


Copyright © 2010-2012. All Rights Reserved.