Class Notification

java.lang.Object
com.dzidzi.dto.merge.EntityId
com.dzidzi.dto.notification.Notification

public class Notification extends EntityId
Represents a notification of the Api.
  • Constructor Details

  • Method Details

    • builder

      public static Notification.Builder builder()
    • getRecipientId

      public UUID getRecipientId()
      The id of the user the notification is sent to. This can be the id of an Admin, Courier, Restaurant, Customer Service and a User.
    • getRecipientUsername

      public String getRecipientUsername()
      The username of the user the notification is sent to. This can be the username of an Admin, Courier, Restaurant, Customer Service and a User.
    • getMessage

      public String getMessage()
      The notification message
    • getCreatedOn

      public long getCreatedOn()
      The timestamp the notification was created.
    • getReadOn

      public long getReadOn()
      The timestamp the notification was read.
    • getStatus

      public NotificationStatus getStatus()
      The status of the notification.
    • getType

      public NotificationType getType()
    • getLink

      public String getLink()
      The link to use to get to the notification object.