Module it.auties.cobalt
Record Class NewsletterMuteResponse
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.response.NewsletterMuteResponse
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterMuteResponse(Jid jid, boolean mute) Creates an instance of aNewsletterMuteResponserecord class.NewsletterMuteResponse(Map<String, String> json) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jid()Returns the value of thejidrecord component.booleanmute()Returns the value of themuterecord component.static Optional<NewsletterMuteResponse> final StringtoString()Returns a string representation of this record class.
-
Field Details
-
jid
The field for thejidrecord component. -
mute
private final boolean muteThe field for themuterecord component.
-
-
Constructor Details
-
NewsletterMuteResponse
-
NewsletterMuteResponse
Creates an instance of aNewsletterMuteResponserecord class.- Parameters:
jid- the value for thejidrecord componentmute- the value for themuterecord component
-
-
Method Details
-
ofJson
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
jid
Returns the value of thejidrecord component.- Returns:
- the value of the
jidrecord component
-
mute
public boolean mute()Returns the value of themuterecord component.- Returns:
- the value of the
muterecord component
-