Beispiel #1
0
 public void queryInventorySucceeded(string json)
 {
     if (queryInventorySucceededEvent != null)
     {
         Dictionary <string, object> dictionary = JsonExtensions.dictionaryFromJson(json);
         queryInventorySucceededEvent(GooglePurchase.fromList(dictionary["purchases"] as List <object>), GoogleSkuInfo.fromList(dictionary["skus"] as List <object>));
     }
 }
Beispiel #2
0
 public void purchaseCompleteAwaitingVerification(string json)
 {
     if (purchaseCompleteAwaitingVerificationEvent != null)
     {
         Dictionary <string, object> dictionary = JsonExtensions.dictionaryFromJson(json);
         string str  = dictionary["purchaseData"].ToString();
         string str2 = dictionary["signature"].ToString();
         purchaseCompleteAwaitingVerificationEvent(str, str2);
     }
 }
Beispiel #3
0
 public void purchaseSucceeded(string json)
 {
     ActionExtensions.fire <GooglePurchase>(purchaseSucceededEvent, new GooglePurchase(JsonExtensions.dictionaryFromJson(json)));
 }
Beispiel #4
0
 public void consumePurchaseSucceeded(string json)
 {
     if (consumePurchaseSucceededEvent != null)
     {
         ActionExtensions.fire <GooglePurchase>(consumePurchaseSucceededEvent, new GooglePurchase(JsonExtensions.dictionaryFromJson(json)));
     }
 }