public void Run(string assetID, string assetName, string assetType, string ownerID, string originalFilename, RestUpdateAssetCallback inCallback)
        {
            var request = new RestUpdateAssetRequestData()
            {
                name           = assetName,
                asset_type     = assetType,
                owner_id       = ownerID,
                orig_file_name = originalFilename
            };

            RestManager.Patch(this, RestManager.Request.UPDATE_ASSET + assetID, TinyJSON.Encoder.Encode(request, TinyJSON.EncodeOptions.NoTypeHints), UpdateAssetResponse);
            doneCallback = inCallback;
        }
Beispiel #2
0
            public static void UpdateAsset(string assetID, string assetName, string assetType, string assetOwnerID, string originalFilename, RestUpdateAssetCallback callback)
            {
                var restUpdateAsset = new RestUpdateAsset();

                restUpdateAsset.Run(assetID, assetName, assetType, assetOwnerID, originalFilename, callback);
            }