Beispiel #1
0
        public async Task ClearReservationsAsync(
            [Summary("The three-letter code which identifies the server to clear.")]
            string serverCode = null)
        {
            if (serverCode == null)
            {
                await _playtesting.ClearServerReservations();
            }
            else
            {
                await _playtesting.ClearServerReservations(serverCode);
            }

            await ReplyAsync(string.Empty, false, _playtesting.DisplayServerReservations());

            await DataBaseUtil.AddCommandAsync("ClearReservations", Context);
        }
        public async Task ShowReservationsAsync()
        {
            await ReplyAsync("", false, _playtesting.DisplayServerReservations());

            await DataBaseUtil.AddCommandAsync("ShowReservations", Context);
        }