com.sponsorpay.sdk.android.publisher.unlock
Class UnlockedItemsResponse.Item

java.lang.Object
  extended by com.sponsorpay.sdk.android.publisher.unlock.UnlockedItemsResponse.Item
Enclosing class:
UnlockedItemsResponse

public static class UnlockedItemsResponse.Item
extends java.lang.Object

Encloses an SponsorPay Unlock Item and its status as received by the server.


Field Summary
private  java.lang.String id
           
private  java.lang.String name
           
private  long timestamp
           
private  boolean unlocked
           
 
Constructor Summary
UnlockedItemsResponse.Item()
           
 
Method Summary
 java.lang.String getId()
          Returns the Unlock Item ID
 java.lang.String getName()
          Returns the Unlock Item name
 long getTimestamp()
          Returns the timestamp of the unlock if the item has been unlocked.
 boolean isUnlocked()
          Returns whether the item has been unlocked.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private java.lang.String id

name

private java.lang.String name

timestamp

private long timestamp

unlocked

private boolean unlocked
Constructor Detail

UnlockedItemsResponse.Item

public UnlockedItemsResponse.Item()
Method Detail

getId

public java.lang.String getId()
Returns the Unlock Item ID


getName

public java.lang.String getName()
Returns the Unlock Item name


getTimestamp

public long getTimestamp()
Returns the timestamp of the unlock if the item has been unlocked.


isUnlocked

public boolean isUnlocked()
Returns whether the item has been unlocked.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object