Пример #1
0
        internal static AsyncHTTPClient DirectPurchase(int packageID, string password, AssetStoreResultBase <PurchaseResult> .Callback callback)
        {
            string         url = AssetStoreClient.APIUrl(string.Format("/purchase/direct/{0}", packageID.ToString()));
            PurchaseResult r   = new PurchaseResult(callback);
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["password"] = password;
            return(AssetStoreClient.CreateJSONRequestPost(url, dictionary, delegate(AssetStoreResponse ar)
            {
                r.Parse(ar);
            }));
        }
Пример #2
0
        internal static AsyncHTTPClient DirectPurchase(int packageID, string password, AssetStoreResultBase <PurchaseResult> .Callback callback)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            AssetStoreClient.\u003CDirectPurchase\u003Ec__AnonStorey56 purchaseCAnonStorey56 = new AssetStoreClient.\u003CDirectPurchase\u003Ec__AnonStorey56();
            string url = AssetStoreClient.APIUrl(string.Format("/purchase/direct/{0}", (object)packageID.ToString()));

            // ISSUE: reference to a compiler-generated field
            purchaseCAnonStorey56.r = new PurchaseResult(callback);
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            dictionary["password"] = password;
            // ISSUE: reference to a compiler-generated method
            return(AssetStoreClient.CreateJSONRequestPost(url, dictionary, new AssetStoreClient.DoneCallback(purchaseCAnonStorey56.\u003C\u003Em__94)));
        }