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