net.robotmedia.billing.model
Class Transaction

java.lang.Object
  extended by org.solovyev.common.JObject
      extended by net.robotmedia.billing.model.Transaction
All Implemented Interfaces:
Cloneable, org.solovyev.common.JCloneable<Transaction>

public class Transaction
extends org.solovyev.common.JObject
implements org.solovyev.common.JCloneable<Transaction>


Nested Class Summary
static class Transaction.PurchaseState
           
 
Field Summary
 String developerPayload
           
 String notificationId
           
 String orderId
           
 String packageName
           
 String productId
           
 Transaction.PurchaseState purchaseState
           
 long purchaseTime
           
 
Constructor Summary
Transaction()
           
Transaction(String orderId, String productId, String packageName, Transaction.PurchaseState purchaseState, String notificationId, long purchaseTime, String developerPayload)
           
 
Method Summary
 Transaction clone()
           
 boolean equals(Object o)
           
 int hashCode()
           
static Transaction newInstance(org.json.JSONObject json)
           
 org.json.JSONObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

developerPayload

public String developerPayload

notificationId

public String notificationId

orderId

public String orderId

packageName

public String packageName

productId

public String productId

purchaseState

public Transaction.PurchaseState purchaseState

purchaseTime

public long purchaseTime
Constructor Detail

Transaction

public Transaction()

Transaction

public Transaction(String orderId,
                   String productId,
                   String packageName,
                   Transaction.PurchaseState purchaseState,
                   String notificationId,
                   long purchaseTime,
                   String developerPayload)
Method Detail

newInstance

@Nonnull
public static Transaction newInstance(@Nonnull
                                              org.json.JSONObject json)
                               throws org.json.JSONException
Throws:
org.json.JSONException

toJson

@Nonnull
public org.json.JSONObject toJson()
                           throws org.json.JSONException
Throws:
org.json.JSONException

clone

@Nonnull
public Transaction clone()
Specified by:
clone in interface org.solovyev.common.JCloneable<Transaction>
Overrides:
clone in class org.solovyev.common.JObject

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.