コード例 #1
0
    public void GetPurchases()
    {
        BazaarBilling.GetPurchases(
            (result) =>
        {
            if (result.Successful)
            {
                int i = 0;
                List <Purchase> purchases = result.Body;
                Log("purchase List : " + purchases.Count);

                foreach (Purchase p in purchases)
                {
                    i++;
                    Log(i + ") ProductId: " + p.ProductId);
                    Log("   OrderId           : " + p.OrderId);
                    Log("   PurchaseToken     : " + p.PurchaseToken);
                    Log("   PurchaseTime      : " + p.PurchaseTime);
                    Log("   DeveloperPayload  : " + p.DeveloperPayload);
                    Log("   State             : " + p.State.ToString());
                    Log("   ProductType       : " + p.ProductType.ToString());
                }
            }
            else
            {
                Log("Failed :" + result.Message);
            }
        });
    }
コード例 #2
0
 public void GetPurchases()
 {
     BazaarBilling.GetPurchases(
         (result) =>
     {
         if (result.Successful)
         {
             List <Purchase> purchases = result.Body;
         }
         else
         {
             Log("Failed :" + result.Message);
         }
     });
 }