Пример #1
0
        public static void LogMessage(ChatMessage chatMessage)
        {
            if (LastChatMessages.Count >= chatMessageQueueLength - 1)
            {
                LastChatMessages.RemoveAt(0);
            }

            LastChatMessages.Add(chatMessage);

            ViewerTracker.UpdateViewer(chatMessage.Username);
        }
Пример #2
0
        public static void LogMessage(ChatMessage chatMessage)
        {
            if (LastChatMessages.Count >= chatMessageQueueLength - 1)
            {
                LastChatMessages.RemoveAt(0);
            }

            LastChatMessages.Add(chatMessage);

            if (ViewerController.ViewerExists(chatMessage.Username))
            {
                ViewerTracker.UpdateViewer(ViewerController.GetViewer(chatMessage.Username));
            }
        }