public void Run(string groupID, string updatedName, RestUpdateGroupCallback inCallback)
        {
            var reqData = new RestUpdateGroupRequestData()
            {
                name = updatedName
            };

            RestManager.Patch(this, RestManager.Request.UPDATE_GROUP + groupID, TinyJSON.Encoder.Encode(reqData, TinyJSON.EncodeOptions.NoTypeHints), OnUpdateGroupResponse);
            doneCallback = inCallback;
        }
        public void Run(string spaceID, string spaceName, string ownerID, RestUpdateSpaceCallback inCallback)
        {
            var request = new RestUpdateSpaceRequestData()
            {
                name     = spaceName,
                owner_id = ownerID
            };

            RestManager.Patch(this, RestManager.Request.UPDATE_SPACE + spaceID, TinyJSON.Encoder.Encode(request, TinyJSON.EncodeOptions.NoTypeHints), UpdateSpaceResponse);
            doneCallback = inCallback;
        }
        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;
        }
Exemple #4
0
 public void Run(string first, string middle, string last, string password, RestUpdateUserCallback inCallback)
 {
     RestManager.Patch(this, RestManager.Request.UPDATE_USER, "", UpdateUserResponse);
     doneCallback = inCallback;
 }