-
Notifications
You must be signed in to change notification settings - Fork 0
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 #54 from daithihearn/alexa-model-refactor
refactor: poorly named model objects
- Loading branch information
Showing
5 changed files
with
18 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.18.0 | ||
1.18.1 |
11 changes: 9 additions & 2 deletions
11
src/main/kotlin/ie/daithi/electricityprices/model/alexa/AlexaResponse.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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
package ie.daithi.electricityprices.model.alexa | ||
|
||
import ie.daithi.electricityprices.utils.alexaSkillFormatter | ||
import java.time.LocalDateTime | ||
import java.util.UUID | ||
|
||
data class AlexaResponse( | ||
val version: String = "1.0", | ||
val response: AlexaResponseBody | ||
val uid: String = UUID.randomUUID().toString(), | ||
val updateDate: String = LocalDateTime.now().format(alexaSkillFormatter), | ||
val titleText: String, | ||
val mainText: String, | ||
val redirectionUrl: String = "https://elec.daithiapp.com/" | ||
) |
11 changes: 2 additions & 9 deletions
11
src/main/kotlin/ie/daithi/electricityprices/model/alexa/AlexaSkillResponse.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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
package ie.daithi.electricityprices.model.alexa | ||
|
||
import ie.daithi.electricityprices.utils.alexaSkillFormatter | ||
import java.time.LocalDateTime | ||
import java.util.UUID | ||
|
||
data class AlexaSkillResponse( | ||
val uid: String = UUID.randomUUID().toString(), | ||
val updateDate: String = LocalDateTime.now().format(alexaSkillFormatter), | ||
val titleText: String, | ||
val mainText: String, | ||
val redirectionUrl: String = "https://elec.daithiapp.com/" | ||
val version: String = "1.0", | ||
val response: AlexaResponseBody | ||
) |
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/ie/daithi/electricityprices/utils/AlexaUtils.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
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