Changed folder structure

This commit is contained in:
2023-09-21 12:43:40 +03:00
parent dd86d669bf
commit fad1a8e284
6 changed files with 10 additions and 6 deletions

View File

@@ -0,0 +1,43 @@
package com.faf223.expensetrackerfaf.model;
import com.faf223.expensetrackerfaf.util.IMoneyTransaction;
public class Income implements IMoneyTransaction {
private long userId;
private int amount;
private Categories.IncomeCategory category;
public Income(long userId, int amount, Categories.IncomeCategory category) {
this.userId = userId;
this.amount = amount;
this.category = category;
}
@Override
public long getUserId() {
return userId;
}
@Override
public int getAmount() {
return amount;
}
@Override
public String getCategory() {
return category.getEffectiveName();
}
public void setUserId(long userId) {
this.userId = userId;
}
public void setAmount(int amount) {
this.amount = amount;
}
public void setCategory(Categories.IncomeCategory category) {
this.category = category;
}
}