Class DebtViewCLI

java.lang.Object
com.truebubo.maniflow.debt.DebtViewCLI

public class DebtViewCLI extends Object
CLI Frontend for debt portion of the application
  • Constructor Details

    • DebtViewCLI

      public DebtViewCLI(DebtService debtService)
      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

      public void addDebt(Debt debt)
      Saves the debt
      Parameters:
      debt - Information about the debt to be added
    • payDebt

      public void payDebt(int id, BigDecimal amount)
      Pay the value on the debt with given id
      Parameters:
      id - ID identifying the debt. It is the left value displayed when calling showDebts
      amount - Will deduct this much from the debt