Skip to content
Snippets Groups Projects
Commit ed59297d authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#598 - added missing constructors

parent 5f504f24
Branches
Tags
No related merge requests found
...@@ -22,6 +22,20 @@ public class BackupTemplate_v5 ...@@ -22,6 +22,20 @@ public class BackupTemplate_v5
{ {
} }
public BackupTemplate_v5(String templateName, Integer amount, Boolean isExpenditure, BackupAccount_v5 account, BackupCategory_v5 category, String name, String description, BackupImage_v5 icon, List<Tag> tags, BackupAccount_v5 transferAccount)
{
this.templateName = templateName;
this.amount = amount;
this.isExpenditure = isExpenditure;
this.account = account;
this.category = category;
this.name = name;
this.description = description;
this.icon = icon;
this.tags = tags;
this.transferAccount = transferAccount;
}
public String getTemplateName() public String getTemplateName()
{ {
return templateName; return templateName;
...@@ -140,8 +154,7 @@ public class BackupTemplate_v5 ...@@ -140,8 +154,7 @@ public class BackupTemplate_v5
@Override @Override
public String toString() public String toString()
{ {
return "BackupTemplate_v5{" + return "BackupTemplate_v5{templateName='" + templateName + '\'' +
", templateName='" + templateName + '\'' +
", amount=" + amount + ", amount=" + amount +
", isExpenditure=" + isExpenditure + ", isExpenditure=" + isExpenditure +
", account=" + account + ", account=" + account +
......
...@@ -23,6 +23,20 @@ public class BackupTransaction_v5 ...@@ -23,6 +23,20 @@ public class BackupTransaction_v5
{ {
} }
public BackupTransaction_v5(Integer amount, Boolean isExpenditure, String date, BackupAccount_v5 account, BackupCategory_v5 category, String name, String description, List<Tag> tags, BackupRepeatingOption_v4 repeatingOption, BackupAccount_v5 transferAccount)
{
this.amount = amount;
this.isExpenditure = isExpenditure;
this.date = date;
this.account = account;
this.category = category;
this.name = name;
this.description = description;
this.tags = tags;
this.repeatingOption = repeatingOption;
this.transferAccount = transferAccount;
}
public Integer getAmount() public Integer getAmount()
{ {
return amount; return amount;
...@@ -141,8 +155,7 @@ public class BackupTransaction_v5 ...@@ -141,8 +155,7 @@ public class BackupTransaction_v5
@Override @Override
public String toString() public String toString()
{ {
return "BackupTransaction_v5{" + return "BackupTransaction_v5{amount=" + amount +
", amount=" + amount +
", isExpenditure=" + isExpenditure + ", isExpenditure=" + isExpenditure +
", date=" + date + ", date=" + date +
", account=" + account + ", account=" + account +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment