Module it.auties.cobalt
Record Class RequestPhoneNumberMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.standard.RequestPhoneNumberMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
,ContextualMessage
,Message
public record RequestPhoneNumberMessage(Optional<ContextInfo> contextInfo)
extends Record
implements ContextualMessage
A model class that represents a message holding a request for a phone number inside
Still needs to be implemented by Whatsapp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional
<ContextInfo> The field for thecontextInfo
record component. -
Constructor Summary
ConstructorsConstructorDescriptionRequestPhoneNumberMessage
(Optional<ContextInfo> contextInfo) Creates an instance of aRequestPhoneNumberMessage
record class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()
Return message categoryReturns the value of thecontextInfo
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
Return message type
-
Field Details
-
contextInfo
The field for thecontextInfo
record component.
-
-
Constructor Details
-
RequestPhoneNumberMessage
Creates an instance of aRequestPhoneNumberMessage
record class.- Parameters:
contextInfo
- the value for thecontextInfo
record component
-
-
Method Details
-
type
Description copied from interface:Message
Return message type -
category
Description copied from interface:Message
Return message category -
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)
. -
contextInfo
Returns the value of thecontextInfo
record component.- Specified by:
contextInfo
in interfaceContextualMessage
- Returns:
- the value of the
contextInfo
record component
-