public void queryPurchasesFailed(string Message) { GetPurchasesResult result = new GetPurchasesResult(); result.Status = GetPurchasesStatus.Failed; result.Message = Message; RemoveCallback("queryPurchasesSucceeded"); ExecuteCallBack("queryPurchasesFailed", result); }
//GetPurchasesResult public void queryPurchasesSucceeded(string JsonData) { GetPurchasesResult result = new GetPurchasesResult(); result.Status = GetPurchasesStatus.Success; result.Purchases = new List <Purchase>(); foreach (JSONNode jn in JSONNode.Parse(JsonData).AsArray) { result.Purchases.Add(Purchase.Parse(jn)); } RemoveCallback("queryPurchasesFailed"); ExecuteCallBack("queryPurchasesSucceeded", result); }