Record Class NotifierService.NotificationPayload
java.lang.Object
java.lang.Record
it.uniupo.simnova.service.NotifierService.NotificationPayload
- Record Components:
- status- lo stato della notifica (SUCCESS o ERROR)
- title- il titolo della notifica
- details- i dettagli della notifica
- notificationToCloseId- l'ID della notifica da chiudere, se necessario
- Enclosing class:
- NotifierService
public static record NotifierService.NotificationPayload(NotifierService.Status status, String title, String details, String notificationToCloseId)
extends Record
Payload per le notifiche, contenente lo stato, il titolo, i dettagli e l'ID della notifica da chiudere.
- Version:
- 2.0
- Author:
- Alessandro Zappatore
- 
Constructor SummaryConstructorsConstructorDescriptionNotificationPayload(NotifierService.Status status, String title, String details, String notificationToCloseId) Creates an instance of aNotificationPayloadrecord class.
- 
Method SummaryModifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenotificationToCloseIdrecord component.status()Returns the value of thestatusrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
NotificationPayloadpublic NotificationPayload(NotifierService.Status status, String title, String details, String notificationToCloseId) Creates an instance of aNotificationPayloadrecord class.- Parameters:
- status- the value for the- statusrecord component
- title- the value for the- titlerecord component
- details- the value for the- detailsrecord component
- notificationToCloseId- the value for the- notificationToCloseIdrecord component
 
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
status
- 
title
- 
details
- 
notificationToCloseIdReturns the value of thenotificationToCloseIdrecord component.- Returns:
- the value of the notificationToCloseIdrecord component
 
 
-