Class NotificationItem

java.lang.Object
com.example.lottery.model.NotificationItem

public class NotificationItem extends Object
Model class representing a notification in a user's inbox.

Target Firestore path: users/{userId}/inbox/{notificationId}

  • Constructor Details

    • NotificationItem

      public NotificationItem()
      Default constructor for Firestore serialization.
    • NotificationItem

      public NotificationItem(String notificationId, String title, String message, String type, String eventId, String eventTitle, String senderId, String senderRole, boolean isRead, com.google.firebase.Timestamp createdAt)
      Full constructor for a user inbox notification.
  • Method Details

    • getNotificationId

      public String getNotificationId()
    • setNotificationId

      public void setNotificationId(String notificationId)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getEventId

      public String getEventId()
    • setEventId

      public void setEventId(String eventId)
    • getEventTitle

      public String getEventTitle()
    • setEventTitle

      public void setEventTitle(String eventTitle)
    • getSenderId

      public String getSenderId()
    • setSenderId

      public void setSenderId(String senderId)
    • getSenderRole

      public String getSenderRole()
    • setSenderRole

      public void setSenderRole(String senderRole)
    • isRead

      public boolean isRead()
    • setRead

      public void setRead(boolean read)
    • getCreatedAt

      public com.google.firebase.Timestamp getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(com.google.firebase.Timestamp createdAt)