-
Notifications
You must be signed in to change notification settings - Fork 3
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 #58 from ahudson20/56-tidy-ups
General code tidy up
- Loading branch information
Showing
25 changed files
with
361 additions
and
252 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
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
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
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/app/whakaara/state/events/AlarmEventCallbacks.kt
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,11 @@ | ||
package com.app.whakaara.state.events | ||
|
||
import com.app.whakaara.data.alarm.Alarm | ||
|
||
interface AlarmEventCallbacks { | ||
fun create(alarm: Alarm) | ||
fun delete(alarm: Alarm) | ||
fun disable(alarm: Alarm) | ||
fun enable(alarm: Alarm) | ||
fun reset(alarm: Alarm) | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/app/whakaara/state/events/PreferencesEventCallbacks.kt
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,11 @@ | ||
package com.app.whakaara.state.events | ||
|
||
import com.app.whakaara.data.preferences.Preferences | ||
|
||
interface PreferencesEventCallbacks { | ||
fun updatePreferences(preferences: Preferences) | ||
|
||
fun updateAllAlarmSubtitles(format: Boolean) | ||
|
||
fun updateCurrentAlarmsToAddOrRemoveUpcomingAlarmNotification(shouldEnableUpcomingAlarmNotification: Boolean) | ||
} |
8 changes: 8 additions & 0 deletions
8
app/src/main/java/com/app/whakaara/state/events/StopwatchEventCallbacks.kt
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,8 @@ | ||
package com.app.whakaara.state.events | ||
|
||
interface StopwatchEventCallbacks { | ||
fun startStopwatch() | ||
fun pauseStopwatch() | ||
fun stopStopwatch() | ||
fun lapStopwatch() | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/app/whakaara/state/events/TimerEventCallbacks.kt
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,11 @@ | ||
package com.app.whakaara.state.events | ||
|
||
interface TimerEventCallbacks { | ||
fun updateHours(newValue: String) | ||
fun updateMinutes(newValue: String) | ||
fun updateSeconds(newValue: String) | ||
fun startTimer() | ||
fun stopTimer() | ||
fun pauseTimer() | ||
fun restartTimer() | ||
} |
Oops, something went wrong.