@@ -47,6 +47,7 @@ public static CommentsInfo getInfo(final CommentsExtractor commentsExtractor)
4747 final InfoItemsPage <CommentsInfoItem > initialCommentsPage =
4848 ExtractorHelper .getItemsPageOrLogError (commentsInfo , commentsExtractor );
4949 commentsInfo .setCommentsDisabled (commentsExtractor .isCommentsDisabled ());
50+ commentsInfo .setLiveChat (commentsExtractor .isLiveChat ());
5051 commentsInfo .setRelatedItems (initialCommentsPage .getItems ());
5152 try {
5253 commentsInfo .setCommentsCount (commentsExtractor .getCommentsCount ());
@@ -81,6 +82,7 @@ public static InfoItemsPage<CommentsInfoItem> getMoreItems(
8182
8283 private transient CommentsExtractor commentsExtractor ;
8384 private boolean commentsDisabled = false ;
85+ private boolean liveChat = false ;
8486 private int commentsCount ;
8587
8688 public CommentsExtractor getCommentsExtractor () {
@@ -106,6 +108,22 @@ public void setCommentsDisabled(final boolean commentsDisabled) {
106108 this .commentsDisabled = commentsDisabled ;
107109 }
108110
111+ /**
112+ * @apiNote Warning: This method is experimental and may get removed in a future release.
113+ * @return {@code true} if the comments are from a live chat otherwise {@code false} (default)
114+ */
115+ public boolean isLiveChat () {
116+ return liveChat ;
117+ }
118+
119+ /**
120+ * @apiNote Warning: This method is experimental and may get removed in a future release.
121+ * @param liveChat {@code true} if the comments are from a live chat otherwise {@code false}
122+ */
123+ public void setLiveChat (final boolean liveChat ) {
124+ this .liveChat = liveChat ;
125+ }
126+
109127 /**
110128 * Returns the total number of comments.
111129 *
0 commit comments