OSDN Git Service

コメント量を減らすパラメータを渡す処理実装
[coroid/inqubus.git] / frontend / src / saccubus / converter / profile / CommentGetInfo.java
index c17634b..6392eeb 100644 (file)
@@ -5,24 +5,33 @@
 package saccubus.converter.profile;
 
 /**
- *
+ * コメント取得に関するプロファイルです.
  * @author yuki
  */
 public class CommentGetInfo {
 
+    /** コメント取得数を自動調整するのであればtrue. */
     private final boolean selfAdjustCommentNum;
+    /** コメント取得数を自動調整しない場合の取得数. */
     private final int backComment;
+    /** 旧仕様(2010年末までバージョン)でコメントを取得する場合はtrue. */
+    private final boolean reduceComment;
 
-    public CommentGetInfo(boolean selfAdjustCommentNum, int backComment) {
+    public CommentGetInfo(boolean selfAdjustCommentNum, int backComment, boolean reduceComment) {
         this.selfAdjustCommentNum = selfAdjustCommentNum;
         this.backComment = backComment;
+        this.reduceComment = reduceComment;
     }
 
-    public boolean isselfAdjustCommentNum() {
+    public boolean isSelfAdjustCommentNum() {
         return selfAdjustCommentNum;
     }
 
     public int getBackComment() {
         return backComment;
     }
+
+    public boolean isReduceComment() {
+        return reduceComment;
+    }
 }