java.lang.Object
java.lang.Record
it.auties.whatsapp.model.chat.GroupPastParticipants
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record GroupPastParticipants(Jid groupJid, List<GroupPastParticipant> pastParticipants)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
Class representing a list of past participants in a chat group
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JidThe field for thegroupJidrecord component.private final List<GroupPastParticipant> The field for thepastParticipantsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGroupPastParticipants(Jid groupJid, List<GroupPastParticipant> pastParticipants) Creates an instance of aGroupPastParticipantsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groupJid()Returns the value of thegroupJidrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepastParticipantsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
groupJid
The field for thegroupJidrecord component. -
pastParticipants
The field for thepastParticipantsrecord component.
-
-
Constructor Details
-
GroupPastParticipants
Creates an instance of aGroupPastParticipantsrecord class.- Parameters:
groupJid- the value for thegroupJidrecord componentpastParticipants- the value for thepastParticipantsrecord component
-
-
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
public final int 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. All components in this record class are compared withObjects::equals(Object,Object). -
groupJid
Returns the value of thegroupJidrecord component.- Returns:
- the value of the
groupJidrecord component
-
pastParticipants
Returns the value of thepastParticipantsrecord component.- Returns:
- the value of the
pastParticipantsrecord component
-