OSDN Git Service

コメント量を減らすパラメータを渡す処理実装
[coroid/inqubus.git] / frontend / src / saccubus / converter / filegetter / CommentFileWebGetter.java
index 99b28b5..1a2f432 100644 (file)
@@ -19,12 +19,14 @@ public class CommentFileWebGetter extends TcommFileWebGetter {
 
     private final boolean autoCommentNum;
     private final int backComment;
+    private final boolean reduceComment;
     private final CommentInfo commentInfo;
 
-    CommentFileWebGetter(NicoClient client, VideoInfo vi, CommentInfo ci, boolean autoCommentNum, int backComment) {
+    CommentFileWebGetter(NicoClient client, VideoInfo vi, CommentInfo ci, boolean autoCommentNum, int backComment, boolean reduceComment) {
         super(client, vi);
         this.autoCommentNum = autoCommentNum;
         this.backComment = backComment;
+        this.reduceComment = reduceComment;
         this.commentInfo = ci;
     }
 
@@ -37,7 +39,7 @@ public class CommentFileWebGetter extends TcommFileWebGetter {
             com = backComment;
         }
 
-        File res = getClient().getComment(getVideoInfo(), getCommentInfo(), file, listener, com);
+        File res = getClient().getComment(getVideoInfo(), getCommentInfo(), file, listener, com, reduceComment);
         if (res == null) {
             throw new IOException("コメントファイルのダウンロードに失敗しました。");
         }