private static ChatMessage ParseChatMessage(JToken jsonData) { var chatMessage = new ChatMessage(MessageSource.FromString(jsonData["source"].Value <string>()), new User() { Username = jsonData["user"]["username"].Value <string>() }, jsonData["messageText"].Value <string>(), jsonData["timestamp"].Value <long>()); return(chatMessage); }