forked from nus-cs2103-AY1920S1/addressbook-level3
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #87 from MauriceTXS/notification
Updated Suggest feature and UserGuide
- Loading branch information
Showing
4 changed files
with
30 additions
and
2 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.
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 calofit.logic.commands; | ||
|
||
import calofit.model.Model; | ||
|
||
/** | ||
* Suggest meal for user according to calorie budget left. | ||
*/ | ||
public class SuggestCommand extends Command { | ||
|
||
public static final String COMMAND_WORD = "suggest"; | ||
|
||
public static final String MESSAGE_SUCCESS = "The suggested meals are listed below!"; | ||
|
||
|
||
@Override | ||
public CommandResult execute(Model model) { | ||
|
||
int remain = model.getRemainingCalories(); | ||
model.setDishFilterPredicate(null); | ||
|
||
return new CommandResult(MESSAGE_SUCCESS); | ||
} | ||
} |
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