Record Class TicketMessage
java.lang.Object
java.lang.Record
fr.mathildeuh.youneedme.api.tickets.TicketMessage
-
Constructor Summary
ConstructorsConstructorDescriptionTicketMessage(long id, long ticketId, @Nullable UUID author, String authorUsername, boolean staffMessage, String message, long sentAt) Creates an instance of aTicketMessagerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable UUIDauthor()Returns the value of theauthorrecord component.Returns the value of theauthorUsernamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.longsentAt()Returns the value of thesentAtrecord component.booleanReturns the value of thestaffMessagerecord component.longticketId()Returns the value of theticketIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TicketMessage
public TicketMessage(long id, long ticketId, @Nullable @Nullable UUID author, String authorUsername, boolean staffMessage, String message, long sentAt) Creates an instance of aTicketMessagerecord class.- Parameters:
id- the value for theidrecord componentticketId- the value for theticketIdrecord componentauthor- the value for theauthorrecord componentauthorUsername- the value for theauthorUsernamerecord componentstaffMessage- the value for thestaffMessagerecord componentmessage- the value for themessagerecord componentsentAt- the value for thesentAtrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
ticketId
public long ticketId()Returns the value of theticketIdrecord component.- Returns:
- the value of the
ticketIdrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
authorUsername
Returns the value of theauthorUsernamerecord component.- Returns:
- the value of the
authorUsernamerecord component
-
staffMessage
public boolean staffMessage()Returns the value of thestaffMessagerecord component.- Returns:
- the value of the
staffMessagerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
sentAt
public long sentAt()Returns the value of thesentAtrecord component.- Returns:
- the value of the
sentAtrecord component
-