Record Class ComunicazioniApi.DatiComunicazione
java.lang.Object
java.lang.Record
it.unina.picus.comunicazioni.api.ComunicazioniApi.DatiComunicazione
- Record Components:
titolo- titolo della comunicazionetesto- testo da inviaretipo- categoria di destinatari e ampiezza della selezionegruppo- account selezionati per un invio a gruppo, insieme vuoto per un invio all'intera categoriaallegati- file da inviare, eventualmente nessuno
- Enclosing interface:
ComunicazioniApi
public static record ComunicazioniApi.DatiComunicazione(String titolo, String testo, ComunicazioniApi.TipoDestinatari tipo, Set<UUID> gruppo, List<ComunicazioniApi.FileAllegato> allegati)
extends Record
Dati di invio della comunicazione e selezione dei destinatari.
-
Constructor Summary
ConstructorsConstructorDescriptionDatiComunicazione(String titolo, String testo, ComunicazioniApi.TipoDestinatari tipo, Set<UUID> gruppo, List<ComunicazioniApi.FileAllegato> allegati) Crea una copia immutabile della selezione e della lista degli allegati. -
Method Summary
Modifier and TypeMethodDescriptionallegati()Returns the value of theallegatirecord component.final booleanIndicates whether some other object is "equal to" this one.gruppo()Returns the value of thegrupporecord component.final inthashCode()Returns a hash code value for this object.testo()Returns the value of thetestorecord component.tipo()Returns the value of thetiporecord component.titolo()Returns the value of thetitolorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatiComunicazione
public DatiComunicazione(String titolo, String testo, ComunicazioniApi.TipoDestinatari tipo, Set<UUID> gruppo, List<ComunicazioniApi.FileAllegato> allegati) Crea una copia immutabile della selezione e della lista degli allegati.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates 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). -
titolo
-
testo
-
tipo
-
gruppo
-
allegati
-