示例#1
0
        /// <summary>
        /// Edit details for a mod.
        /// </summary>
        public async Task <Mod?> Edit(EditMod editMod)
        {
            using (var content = editMod.ToContent())
            {
                var(method, path) = Routes.EditMod(GameId, ModId);
                var req = new Request(method, path, content);

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

                return(resp.Body !.Object);
            }
        }
示例#2
0
 /// <summary>
 /// Edit details for a mod.
 /// </summary>
 public async Task <Mod?> Edit(uint mod, EditMod editMod)
 {
     return(await this[mod].Edit(editMod));
 }