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

#598 - added missing constructors

parent 5f504f24
No related branches found
No related tags found
No related merge requests found
......@@ -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()
{
return templateName;
......@@ -140,8 +154,7 @@ public class BackupTemplate_v5
@Override
public String toString()
{
return "BackupTemplate_v5{" +
", templateName='" + templateName + '\'' +
return "BackupTemplate_v5{templateName='" + templateName + '\'' +
", amount=" + amount +
", isExpenditure=" + isExpenditure +
", account=" + account +
......
......@@ -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()
{
return amount;
......@@ -141,8 +155,7 @@ public class BackupTransaction_v5
@Override
public String toString()
{
return "BackupTransaction_v5{" +
", amount=" + amount +
return "BackupTransaction_v5{amount=" + amount +
", isExpenditure=" + isExpenditure +
", date=" + date +
", account=" + account +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment