public CommentStatus(Json.ChatDetails.Items items) { type = items.snippet.type; channelId = items.authorDetails.channelId; displayName = items.authorDetails.displayName; displayMessage = items.snippet.displayMessage; messageText = items.snippet.textMessageDetails.messageText; currency = items.snippet.superChatDetails.currency; amountDisplayString = items.snippet.superChatDetails.amountDisplayString; userComment = items.snippet.superChatDetails.userComment; tier = items.snippet.superChatDetails.tier; publishedAt = items.snippet.publishedAt; hasDisplayContent = items.snippet.hasDisplayContent; isVerified = items.authorDetails.isVerified; isChatOwner = items.authorDetails.isChatOwner; isChatSponsor = items.authorDetails.isChatSponsor; isChatModerator = items.authorDetails.isChatModerator; }
public void EnqueueComment(Json.ChatDetails.Items items) { CommentStatus chatStatus = new CommentStatus(items); _commentQueue.Enqueue(chatStatus); }