-
Notifications
You must be signed in to change notification settings - Fork 80
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 #6380 from ita-social-projects/5874-email-notifica…
…tion-about-event-creation Event creation notification implementation
- Loading branch information
Showing
6 changed files
with
81 additions
and
3 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
23 changes: 23 additions & 0 deletions
23
service-api/src/main/java/greencity/message/SendEventCreationNotification.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,23 @@ | ||
package greencity.message; | ||
|
||
import java.io.Serializable; | ||
|
||
import lombok.Getter; | ||
import lombok.ToString; | ||
import lombok.NoArgsConstructor; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
|
||
/** | ||
* Message, that is used for sending notification about event creation status on | ||
* user email. | ||
*/ | ||
@Getter | ||
@ToString | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class SendEventCreationNotification implements Serializable { | ||
private String email; | ||
private String messageBody; | ||
} |
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 |
---|---|---|
|
@@ -21,10 +21,12 @@ | |
import greencity.dto.verifyemail.VerifyEmailVO; | ||
import greencity.enums.Role; | ||
import greencity.enums.ShoppingListItemStatus; | ||
import greencity.message.AddEcoNewsMessage; | ||
import greencity.message.SendChangePlaceStatusEmailMessage; | ||
import greencity.message.SendHabitNotification; | ||
import greencity.message.SendEventCreationNotification; | ||
import greencity.message.SendReportEmailMessage; | ||
import greencity.message.SendHabitNotification; | ||
import greencity.message.AddEcoNewsMessage; | ||
|
||
import java.time.LocalDateTime; | ||
import java.time.ZonedDateTime; | ||
import java.util.Arrays; | ||
|
@@ -211,4 +213,11 @@ public static AddCustomHabitDtoResponse getAddCustomHabitDtoResponse() { | |
.tagIds(Set.of(20L)) | ||
.build(); | ||
} | ||
|
||
public static SendEventCreationNotification getSendEventCreationNotification() { | ||
return SendEventCreationNotification.builder() | ||
.email("[email protected]") | ||
.messageBody("You have successfully created event") | ||
.build(); | ||
} | ||
} |
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