OSDN Git Service

config値を読んで投稿者コメントのみ取得するかどうかを決定する
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / config / ConfigCommentProfile.java
index c7209b6..8054992 100644 (file)
@@ -14,6 +14,7 @@ public class ConfigCommentProfile implements CommentProfile {
     private final boolean disablePerMinComment;
     private final long backLogPoint;
     private final boolean download;
+    private final boolean ownerCommentOnly;
     private final File dir;
     private final String fileName;
 
@@ -24,6 +25,7 @@ public class ConfigCommentProfile implements CommentProfile {
         this.disablePerMinComment = p.getCommentMinDisabled();
         this.backLogPoint = -1L;
         this.download = !p.getCommentUseLocal();
+        this.ownerCommentOnly = p.getCommentOwnerOnly();
         this.dir = new File(p.getCommentDir());
         this.fileName = p.getCommentFileNamePattern();
     }
@@ -49,6 +51,11 @@ public class ConfigCommentProfile implements CommentProfile {
     }
 
     @Override
+    public boolean isOwnerCommentOnly() {
+        return ownerCommentOnly;
+    }
+
+    @Override
     public boolean isDownload() {
         return download;
     }