Class DebtViewCLI
java.lang.Object
com.truebubo.maniflow.debt.DebtViewCLI
CLI Frontend for debt portion of the application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Saves the debtvoid
payDebt
(int id, BigDecimal amount) Pay the value on the debt with given idvoid
Displays the list of all the expenses for the user
-
Constructor Details
-
DebtViewCLI
CLI front-end for debts- Parameters:
debtService
- service for accessing debt back-end
-
-
Method Details
-
showDebts
public void showDebts()Displays the list of all the expenses for the user -
addDebt
Saves the debt- Parameters:
debt
- Information about the debt to be added
-
payDebt
Pay the value on the debt with given id- Parameters:
id
- ID identifying the debt. It is the left value displayed when calling showDebtsamount
- Will deduct this much from the debt
-