Package com.example.breeze_seas
Class Notification
java.lang.Object
com.example.breeze_seas.Notification
Stores notification details.
-
Constructor Summary
ConstructorsConstructorDescriptionNotification(NotificationType type, String content, com.google.firebase.Timestamp sentAt) Notification(NotificationType type, String content, String eventId, String eventName, String userId) -
Method Summary
Modifier and TypeMethodDescriptionCreate the final form of the notification text for different types of notifications.com.google.firebase.TimestampgetType()booleanisSeen()voidsetContent(String content) voidsetEventId(String eventId) voidsetEventName(String eventName) voidsetNotificationId(String notificationId) voidsetSeen(boolean seen) voidsetSentAt(com.google.firebase.Timestamp sentAt) voidsetType(NotificationType type) void
-
Constructor Details
-
Notification
public Notification() -
Notification
public Notification(NotificationType type, String content, String eventId, String eventName, String userId) -
Notification
-
-
Method Details
-
getNotificationId
-
setNotificationId
-
getType
-
setType
-
getContent
-
setContent
-
getEventId
-
setEventId
-
getSentAt
public com.google.firebase.Timestamp getSentAt() -
setSentAt
public void setSentAt(com.google.firebase.Timestamp sentAt) -
getEventName
-
setEventName
-
getUserId
-
setUserId
-
isSeen
public boolean isSeen() -
setSeen
public void setSeen(boolean seen) -
getDisplayMessage
Create the final form of the notification text for different types of notifications.
-