isPaidを追加

This commit is contained in:
ろむねこ 2024-07-22 11:31:32 +09:00
parent 05e8d15a20
commit 21ec30ef19
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -9,14 +9,16 @@ public class HistoryModel {
private String childId; private String childId;
private Date registeredAt; private Date registeredAt;
private int reward; private int reward;
private boolean isPaid;
public HistoryModel(String id, String taskId, String taskName, String childId, Date registeredAt, int reward) { public HistoryModel(String id, String taskId, String taskName, String childId, Date registeredAt, int reward, boolean isPaid) {
this.id = id; this.id = id;
this.taskId = taskId; this.taskId = taskId;
this.taskName = taskName; this.taskName = taskName;
this.childId = childId; this.childId = childId;
this.registeredAt = registeredAt; this.registeredAt = registeredAt;
this.reward = reward; this.reward = reward;
this.isPaid = isPaid;
} }
public HistoryModel(String id, String taskId, String childId, Date registeredAt) { // 他モデルとのマージが必要なので public HistoryModel(String id, String taskId, String childId, Date registeredAt) { // 他モデルとのマージが必要なので
@ -76,4 +78,12 @@ public class HistoryModel {
public void setReward(int reward) { public void setReward(int reward) {
this.reward = reward; this.reward = reward;
} }
public boolean isPaid() {
return isPaid;
}
public void setPaid(boolean isPaid) {
this.isPaid = isPaid;
}
} }