it.auties.whatsapp.model.message.standard.RequestPhoneNumberMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whatsappweb4j Show documentation
Show all versions of whatsappweb4j Show documentation
Standalone fully-featured Whatsapp Web API for Java and Kotlin
package it.auties.whatsapp.model.message.standard;
import it.auties.protobuf.base.ProtobufName;
import it.auties.protobuf.base.ProtobufProperty;
import it.auties.whatsapp.model.info.ContextInfo;
import it.auties.whatsapp.model.message.model.ContextualMessage;
import it.auties.whatsapp.model.message.model.MessageCategory;
import it.auties.whatsapp.model.message.model.MessageType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.jackson.Jacksonized;
import static it.auties.protobuf.base.ProtobufType.MESSAGE;
/**
* A model class that represents a message holding a request for a phone number inside Still needs
* to be implemented by Whatsapp
*/
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Jacksonized
@Builder
@ProtobufName("RequestPhoneNumberMessage")
public final class RequestPhoneNumberMessage extends ContextualMessage {
/**
* The context of this message
*/
@ProtobufProperty(index = 1, name = "contextInfo", type = MESSAGE)
private ContextInfo contextInfo;
@Override
public MessageType type() {
return MessageType.REQUEST_PHONE_NUMBER;
}
@Override
public MessageCategory category() {
return MessageCategory.STANDARD;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy