コンストラクタ追加

This commit is contained in:
ろむねこ 2024-06-14 11:05:31 +09:00
parent 974b6b2afb
commit e7d910a23e
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -17,6 +17,25 @@ public class TaskItemModel {
long reward;
// constructor
public TaskItemModel(String internalId, String displayName, String attachedChildId, String iconEmoji, Color bgColor, TaskConditionBaseModel condition, long reward) {
this.internalId = internalId;
this.attachedChildId = attachedChildId;
this.displayName = displayName;
this.iconEmoji = iconEmoji;
this.condition = condition;
this.reward = reward;
this.bgColor = bgColor;
}
public TaskItemModel(String internalId, String displayName, String attachedChildId, String iconEmoji, TaskConditionBaseModel condition, long reward) {
this.internalId = internalId;
this.attachedChildId = attachedChildId;
this.displayName = displayName;
this.iconEmoji = iconEmoji;
this.condition = condition;
this.reward = reward;
}
public TaskItemModel(String internalId, String displayName, String attachedChildId, TaskConditionBaseModel condition, long reward) {
this.internalId = internalId;
this.attachedChildId = attachedChildId;