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 thecontextInforecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRequestPhoneNumberMessage(Optional<ContextInfo> contextInfo) Creates an instance of aRequestPhoneNumberMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Return message categoryReturns the value of thecontextInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Return message type
-
Field Details
-
contextInfo
The field for thecontextInforecord component.
-
-
Constructor Details
-
RequestPhoneNumberMessage
Creates an instance of aRequestPhoneNumberMessagerecord class.- Parameters:
contextInfo- the value for thecontextInforecord component
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn 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 thecontextInforecord component.- Specified by:
contextInfoin interfaceContextualMessage- Returns:
- the value of the
contextInforecord component
-