forked from nus-cs2113-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from Dheekshitha2/shree-DG-3
Add changes to developer guide for budget functions, added CommandCreator for list budget
- Loading branch information
Showing
5 changed files
with
66 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/seedu/budgetbuddy/commandcreator/ListBudgetCommandCreator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package seedu.budgetbuddy.commandcreator; | ||
|
||
import seedu.budgetbuddy.commons.ExpenseList; | ||
import seedu.budgetbuddy.command.Command; | ||
import seedu.budgetbuddy.command.ListBudgetCommand; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
public class ListBudgetCommandCreator extends CommandCreator { | ||
private static final Logger LOGGER = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); | ||
private ExpenseList expenses; | ||
|
||
public ListBudgetCommandCreator(ExpenseList expenses){ | ||
this.expenses = expenses; | ||
} | ||
|
||
@Override | ||
public Command createCommand() { | ||
LOGGER.log(Level.INFO, "Creating ListBudgetCommand"); | ||
return new ListBudgetCommand(expenses); | ||
} | ||
} |