Ejemplo n.º 1
0
        public async Task DeleteSession()
        {
            await sessionService.DeleteSession(socketMessage);

            await roomService.ClearRoom(socketMessage);

            await SessionMessages.SendResponseWithListOfCommands(socketMessage);

            await BotMessages.SendResponseWithInfoAboutOffline(socketMessage);
        }
Ejemplo n.º 2
0
        public async Task ClearRoom()
        {
            if (SessionService.GetThisRoomChatSession(socketMessage) != null)
            {
                await RoomMessages.CannotClearRoomBcsActiveSession(socketMessage);

                return;
            }
            await roomService.ClearRoom(socketMessage);

            await SessionMessages.SendResponseWithListOfCommands(socketMessage);

            await BotMessages.SendResponseWithInfoAboutOffline(socketMessage);
        }
Ejemplo n.º 3
0
        public async Task StartSession()
        {
            if (SessionHelper.IsSessionInThisRoom(socketMessage, sessionService.ChatSessions))
            {
                await SessionMessages.CannotCreateSessionBecauseOtherUser(socketMessage);

                return;
            }
            await roomService.ClearRoom(socketMessage);

            await sessionService.CreateNewSession(socketMessage);

            await SessionMessages.SendResponseWithListOfCommands(socketMessage);

            await BotMessages.SendResponseWithInfoAboutOffline(socketMessage);
        }
Ejemplo n.º 4
0
 public async Task HelpSession()
 {
     await SessionMessages.SendResponseWithListOfCommands(socketMessage);
 }