Exemplo n.º 1
0
        /// <summary>
        /// Edit details for a game.
        /// </summary>
        public async Task <Game?> Edit(EditGame editGame)
        {
            using (var content = editGame.ToContent())
            {
                var(method, path) = Routes.EditGame(GameId);
                var req = new Request(method, path, content);

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

                return(resp.Body !.Object);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Edit details for a game.
 /// </summary>
 public async Task <Game?> Edit(uint game, EditGame editGame)
 {
     return(await this[game].Edit(editGame));
 }