Exemplo n.º 1
0
        /// <summary>
        /// Edit the details of a published file.
        /// </summary>
        public async Task <File?> Edit(EditFile editFile)
        {
            using (var content = editFile.ToContent())
            {
                var(method, path) = Routes.EditFile(GameId, ModId, FileId);
                var req = new Request(method, path, content);

                var resp = await Connection.Send <EditResult <File> >(req);

                return(resp.Body !.Object);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Edit the details of a published file.
 /// </summary>
 public async Task <File?> Edit(uint file, EditFile editFile)
 {
     return(await this[file].Edit(editFile));
 }