Add no-args constructor for PodHistory
This commit is contained in:
parent
3cc1113501
commit
17ad3c41e9
|
@ -39,7 +39,9 @@ public class PodHistory implements DbObjectBase {
|
||||||
@DatabaseField
|
@DatabaseField
|
||||||
private Boolean successConfirmed;
|
private Boolean successConfirmed;
|
||||||
|
|
||||||
|
public PodHistory() {
|
||||||
|
generatePumpId();
|
||||||
|
}
|
||||||
|
|
||||||
public PodHistory(PodDbEntryType podDbEntryType) {
|
public PodHistory(PodDbEntryType podDbEntryType) {
|
||||||
this.date = System.currentTimeMillis();
|
this.date = System.currentTimeMillis();
|
||||||
|
@ -47,14 +49,12 @@ public class PodHistory implements DbObjectBase {
|
||||||
generatePumpId();
|
generatePumpId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public PodHistory(long dateTimeInMillis, PodDbEntryType podDbEntryType) {
|
public PodHistory(long dateTimeInMillis, PodDbEntryType podDbEntryType) {
|
||||||
this.date = dateTimeInMillis;
|
this.date = dateTimeInMillis;
|
||||||
this.podDbEntryType = podDbEntryType;
|
this.podDbEntryType = podDbEntryType;
|
||||||
generatePumpId();
|
generatePumpId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getDate() {
|
public long getDate() {
|
||||||
return this.date;
|
return this.date;
|
||||||
|
|
Loading…
Reference in a new issue