OSDN Git Service

投稿者コメントのみ取得config設定getter/setter
authoryukihane <yukihane.feather@gmail.com>
Sun, 13 May 2012 06:37:49 +0000 (15:37 +0900)
committeryukihane <yukihane.feather@gmail.com>
Sun, 13 May 2012 07:17:34 +0000 (16:17 +0900)
frontend/src/yukihane/inqubus/config/Config.java

index 902b86f..35f6bdd 100644 (file)
@@ -200,7 +200,6 @@ public enum Config {
     public void setCommentUseLocal(boolean s) {
         config.setProperty(FILE_COMMENT_LOCAL, s);
     }
-
     /*
      * ファイル - 変換動画
      */
@@ -253,6 +252,15 @@ public enum Config {
     /*
      * コメント
      */
+    private static final String COMMENT_DOWNLOAD_OWNER_ONLY = "comment.download.owneronly";
+
+    public boolean getCommentOwnerOnly() {
+        return config.getBoolean(COMMENT_DOWNLOAD_OWNER_ONLY, false);
+    }
+
+    public void setCommentOwnerOnly(boolean s) {
+        config.setProperty(COMMENT_DOWNLOAD_OWNER_ONLY, s);
+    }
     private static final String COMMENT_SIZE_AUTOSIZE = "comment.size.autosize";
 
     public boolean getCommentSizeAutosize() {