Module whatsapp4j
Record Class ModificationForParticipant
java.lang.Object
java.lang.Record
it.auties.whatsapp4j.response.impl.json.ModificationForParticipant
- Record Components:
jid
- the jid of the participantstatus
- the status of the modification
public record ModificationForParticipant(@NonNull String jid, @NonNull ModificationForParticipantStatus status)
extends Record
A json model that contains information about a modification made to a participant of a group
-
Constructor Summary
ConstructorDescriptionModificationForParticipant(@NonNull String jid, @NonNull ModificationForParticipantStatus status)
Creates an instance of aModificationForParticipant
record class.ModificationForParticipant(@NonNull Map<String,ModificationForParticipantStatus> json)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.@NonNull String
jid()
Returns the value of thejid
record component.@NonNull ModificationForParticipantStatus
status()
Returns the value of thestatus
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ModificationForParticipant
public ModificationForParticipant(@NonNull @NonNull Map<String,ModificationForParticipantStatus> json) -
ModificationForParticipant
public ModificationForParticipant(@NonNull @NonNull String jid, @NonNull @NonNull ModificationForParticipantStatus status)Creates an instance of aModificationForParticipant
record class.
-
-
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)
. -
jid
Returns the value of thejid
record component.- Returns:
- the value of the
jid
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-