Example #1
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);
        }