forked from Alegres/awstraining-fargate
-
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 #1 from dante-mat/fargate/lab1-before
Fargate/lab1 before
- Loading branch information
Showing
34 changed files
with
494 additions
and
57 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 |
---|---|---|
|
@@ -62,4 +62,4 @@ jobs: | |
"SERVICE_NAME": "backend", | ||
"TASK_NAME": "backend" | ||
} | ||
} | ||
} |
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
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
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/awstraining/backend/business/measurements/MeasurementService.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
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
10 changes: 5 additions & 5 deletions
10
...wstraining/backend/business/measurements/exceptions/CouldNotSaveMeasurementException.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
8 changes: 4 additions & 4 deletions
8
...om/awstraining/backend/business/measurements/exceptions/MeasurementsExceptionHandler.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
10 changes: 5 additions & 5 deletions
10
...java/com/awstraining/backend/business/measurements/exceptions/UnknownDeviceException.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
4 changes: 2 additions & 2 deletions
4
.../java/com/awstraining/backend/business/measurements/repository/MeasurementRepository.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
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
7 changes: 7 additions & 0 deletions
7
app/src/main/java/com/awstraining/backend/business/notifyme/MessageSender.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,7 @@ | ||
package com.awstraining.backend.business.notifyme; | ||
|
||
public interface MessageSender { | ||
|
||
void send(String text); | ||
|
||
} |
4 changes: 4 additions & 0 deletions
4
app/src/main/java/com/awstraining/backend/business/notifyme/NotifyMeDO.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,4 @@ | ||
package com.awstraining.backend.business.notifyme; | ||
|
||
public record NotifyMeDO(String text, String sourceLc, String targetLc) { | ||
} |
33 changes: 33 additions & 0 deletions
33
app/src/main/java/com/awstraining/backend/business/notifyme/NotifyMeService.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,33 @@ | ||
package com.awstraining.backend.business.notifyme; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class NotifyMeService { | ||
|
||
// TODO: lab1 | ||
// 1. Inject MessageSender. | ||
// TODO lab2 | ||
// 1. Inject Translator | ||
// TODO lab3 | ||
// 1. Inject sentiment detector | ||
// @Autowired | ||
public NotifyMeService() { | ||
|
||
} | ||
|
||
public String notifyMe(NotifyMeDO notifyMe) { | ||
|
||
// TODO: lab1 | ||
// 1. Send text using sender. | ||
// 2. Return sent message. | ||
// TODO: lab2 | ||
// 1. Translate text from using translator. | ||
// 2. Change sending of text to "translated text" and return it. | ||
// TODO: lab3 | ||
// 1. Detect sentiment of translated message. | ||
// 2. Change sending of text to "setiment: translated text" and return it. | ||
return "This service is not available."; | ||
} | ||
|
||
} |
Oops, something went wrong.