Skip to content

Commit

Permalink
[*] Modified the code by a bit so that it now includes Split Bill ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei-Tin committed Nov 15, 2022
1 parent 07dc93f commit 0c1784f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/java/billgates/database/QueryEntryData.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class QueryEntryData {
private String from = "";
private String to = "";
private String location = "";
private int splitBillId = -1;

public QueryEntryData(int id,
ZonedDateTime date,
Expand All @@ -21,7 +22,8 @@ public QueryEntryData(int id,
String description,
String from,
String to,
String location) {
String location,
int splitBillId) {
this.id = id;
this.date = date;
this.value = value;
Expand All @@ -30,6 +32,7 @@ public QueryEntryData(int id,
this.from = from;
this.to = to;
this.location = location;
this.splitBillId = splitBillId;
}

public QueryEntryData(int id,
Expand All @@ -53,9 +56,7 @@ public EntryBuilder toEntryBuilder() {
.setLocation(this.location);
}

public int getId() {
return id;
}
public int getId() { return id; }

public ZonedDateTime getDate() {
return date;
Expand Down Expand Up @@ -84,6 +85,9 @@ public String getTo() {
public String getLocation() {
return location;
}
public int getSplitBillId() {
return splitBillId;
}

@Override
public boolean equals(Object obj) {
Expand Down

0 comments on commit 0c1784f

Please sign in to comment.