-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotificationMessage.java
More file actions
41 lines (33 loc) · 978 Bytes
/
NotificationMessage.java
File metadata and controls
41 lines (33 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.techevents.model;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NotificationMessage {
private String email;
private String eventTitle;
private String eventDate;
private String city;
private String eventDescription;
public NotificationMessage(String email, Event event) {
this.email = email;
this.eventTitle = event.getTitle();
this.eventDate = event.getEventDate().toString();
this.city = event.getCity();
this.eventDescription = event.getDescription();
}
// Getters (and setters if needed)
public String getEmail() {
return email;
}
public String getEventTitle() {
return eventTitle;
}
public String getEventDate() {
return eventDate;
}
public String getCity() {
return city;
}
public String getEventDescription() {
return eventDescription;
}
}