Skip to content

Commit

Permalink
Add hype personality (#377)
Browse files Browse the repository at this point in the history
* Add hype personality

* Add hype personality
  • Loading branch information
Prajwalrayal authored Oct 28, 2022
1 parent ba067c9 commit 07e3adf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public enum HydrateReminderPersonalityType
WIZARD("Wizard"),
CARING("Caring"),
SANTA("Santa"),
KAWAII("Kawaii");
KAWAII("Kawaii"),
HYPE("Hype");



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,26 @@ public class HydrateBreakMessageDictionary {
add("Tasukete kudesai by drinking water now!");
}}
);
/**
* Hydrate Reminder interval break text to display in Hype form
*/
private static final List<String> HYDRATE_BREAK_HYPE_TEXT_LIST =
Collections.unmodifiableList(
new ArrayList<String>() {{
add("Drink! Drink! Drink! that's what will make your body go Shrink Shrink Shrink");
add("Hey! It's time to level up wih some hydrant");
add("The sun believes you'll be dehydrated soon , Go prove it wrong!!");
add("Breakkk time! Go grab your favourite hydrant");
add("Wait! Wait! Wait! treat yourself with a glass of water");
add("It's your time to shine! but wait have some water first instead of wine!");
add("Are you still waiting for the Hype? Be quick grab some fresh lime");
add("All work & no water makes Jack a sick boy");
add("If exhaustion is what you feel, a water break is what you need!");
add("Ready Set Go!! Waterrrr");
add("Miles to go before you sleep! Fill your engine with some H₂O");
add("Guess what? It's another water break!!");
}}
);


private static String getRandomBreakMessage(List<String> hydrateBreakTextList)
Expand Down Expand Up @@ -337,6 +357,9 @@ public static String getRandomHydrateBreakMessageForPersonality(HydrateReminderP
case KAWAII:
breakMessage = getRandomBreakMessage(HYDRATE_BREAK_KAWAII_TEXT_LIST);
break;
case HYPE:
breakMessage = getRandomBreakMessage(HYDRATE_BREAK_HYPE_TEXT_LIST);
break;
case RANDOM:
breakMessage = getRandomPersonalityMessage();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class HydrateBreakMessageDictionaryTest {
"MOTIVATIONAL | Thousands Have Lived Without Love, Not One Without Water. Take a sip | 13",
"AGGRESSIVE | You gotta drink some Water, Yeah! | 9",
"SANTA | All I want for Christmas is you....drinking enough water | 1",
"KAWAII | Sumimasen! you forgot to drink water | 9"
"KAWAII | Sumimasen! you forgot to drink water | 9",
"HYPE | The sun believes you'll be dehydrated soon , Go prove it wrong!! | 2"
})
void shouldChooseCorrectMessageBasedOnPersonalityType(
HydrateReminderPersonalityType personalityType, String expectedMessage, int value) {
Expand Down

0 comments on commit 07e3adf

Please sign in to comment.