Add no-args constructor for PodHistory

This commit is contained in:
Bart Sopers 2019-12-08 16:40:14 +01:00
parent 3cc1113501
commit 17ad3c41e9

View file

@ -39,7 +39,9 @@ public class PodHistory implements DbObjectBase {
@DatabaseField
private Boolean successConfirmed;
public PodHistory() {
generatePumpId();
}
public PodHistory(PodDbEntryType podDbEntryType) {
this.date = System.currentTimeMillis();
@ -47,14 +49,12 @@ public class PodHistory implements DbObjectBase {
generatePumpId();
}
public PodHistory(long dateTimeInMillis, PodDbEntryType podDbEntryType) {
this.date = dateTimeInMillis;
this.podDbEntryType = podDbEntryType;
generatePumpId();
}
@Override
public long getDate() {
return this.date;