Package org.ametys.plugins.rocket.chat
Record Class RocketChatHelper.RoomInfo
java.lang.Object
java.lang.Record
org.ametys.plugins.rocket.chat.RocketChatHelper.RoomInfo
- Record Components:
roomId
- The room idroomLabel
- The room nameunread
- The number of unread items for the user
- Enclosing class:
RocketChatHelper
public static record RocketChatHelper.RoomInfo(String roomId, String roomLabel, int unread)
extends Record
A Rocket.Chat room info for a user
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.roomId()
Returns the value of theroomId
record component.Returns the value of theroomLabel
record component.final String
toString()
Returns a string representation of this record class.int
unread()
Returns the value of theunread
record component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
roomId
Returns the value of theroomId
record component.- Returns:
- the value of the
roomId
record component
-
roomLabel
Returns the value of theroomLabel
record component.- Returns:
- the value of the
roomLabel
record component
-
unread
Returns the value of theunread
record component.- Returns:
- the value of the
unread
record component
-