Module it.auties.whatsappweb4j
Package it.auties.whatsapp.model.request
Record Class MessageSendRequest
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.request.MessageSendRequest
public record MessageSendRequest(MessageInfo info, ContactJid overrideSender, boolean force, Map<String,Object> additionalAttributes)
extends Record
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMessageSendRequest
(MessageInfo info, ContactJid overrideSender, boolean force, Map<String, Object> additionalAttributes) Creates an instance of aMessageSendRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalAttributes
record component.builder()
final boolean
Indicates whether some other object is "equal to" this one.boolean
force()
Returns the value of theforce
record component.final int
hashCode()
Returns a hash code value for this object.boolean
info()
Returns the value of theinfo
record component.static MessageSendRequest
of
(MessageInfo info) Returns the value of theoverrideSender
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MessageSendRequest
public MessageSendRequest(MessageInfo info, ContactJid overrideSender, boolean force, Map<String, Object> additionalAttributes) Creates an instance of aMessageSendRequest
record class.- Parameters:
info
- the value for theinfo
record componentoverrideSender
- the value for theoverrideSender
record componentforce
- the value for theforce
record componentadditionalAttributes
- the value for theadditionalAttributes
record component
-
-
Method Details
-
of
-
hasSenderOverride
public boolean hasSenderOverride() -
builder
-
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 '=='. -
info
Returns the value of theinfo
record component.- Returns:
- the value of the
info
record component
-
overrideSender
Returns the value of theoverrideSender
record component.- Returns:
- the value of the
overrideSender
record component
-
force
public boolean force()Returns the value of theforce
record component.- Returns:
- the value of the
force
record component
-
additionalAttributes
Returns the value of theadditionalAttributes
record component.- Returns:
- the value of the
additionalAttributes
record component
-