いんきゅばす(仮称; 旧名: さきゅばすのNicoBrowser拡張版)
Révision | 0a55b8473edb4b3fc2db70b2e09c969629744e0d (tree) |
---|---|
l'heure | 2012-05-13 16:17:41 |
Auteur | yukihane <yukihane.feather@gmai...> |
Commiter | yukihane |
config値を読んで投稿者コメントのみ取得するかどうかを決定する
@@ -14,6 +14,7 @@ public class ConfigCommentProfile implements CommentProfile { | ||
14 | 14 | private final boolean disablePerMinComment; |
15 | 15 | private final long backLogPoint; |
16 | 16 | private final boolean download; |
17 | + private final boolean ownerCommentOnly; | |
17 | 18 | private final File dir; |
18 | 19 | private final String fileName; |
19 | 20 |
@@ -24,6 +25,7 @@ public class ConfigCommentProfile implements CommentProfile { | ||
24 | 25 | this.disablePerMinComment = p.getCommentMinDisabled(); |
25 | 26 | this.backLogPoint = -1L; |
26 | 27 | this.download = !p.getCommentUseLocal(); |
28 | + this.ownerCommentOnly = p.getCommentOwnerOnly(); | |
27 | 29 | this.dir = new File(p.getCommentDir()); |
28 | 30 | this.fileName = p.getCommentFileNamePattern(); |
29 | 31 | } |
@@ -50,7 +52,7 @@ public class ConfigCommentProfile implements CommentProfile { | ||
50 | 52 | |
51 | 53 | @Override |
52 | 54 | public boolean isOwnerCommentOnly() { |
53 | - return false; | |
55 | + return ownerCommentOnly; | |
54 | 56 | } |
55 | 57 | |
56 | 58 | @Override |