コード例 #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>));
     }
 }
コード例 #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);
     }
 }
コード例 #3
0
 public void purchaseSucceeded(string json)
 {
     ActionExtensions.fire <GooglePurchase>(purchaseSucceededEvent, new GooglePurchase(JsonExtensions.dictionaryFromJson(json)));
 }
コード例 #4
0
 public void consumePurchaseSucceeded(string json)
 {
     if (consumePurchaseSucceededEvent != null)
     {
         ActionExtensions.fire <GooglePurchase>(consumePurchaseSucceededEvent, new GooglePurchase(JsonExtensions.dictionaryFromJson(json)));
     }
 }