All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.model.button.template.highlyStructured.HighlyStructuredCurrency Maven / Gradle / Ivy

package it.auties.whatsapp.model.button.template.highlyStructured;

import it.auties.protobuf.annotation.ProtobufMessage;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufType;

/**
 * A model class that represents a currency
 */
@ProtobufMessage(name = "Message.HighlyStructuredMessage.HSMLocalizableParameter.HSMCurrency")
public record HighlyStructuredCurrency(
        @ProtobufProperty(index = 1, type = ProtobufType.STRING)
        String currencyCode,
        @ProtobufProperty(index = 2, type = ProtobufType.INT64)
        long amount1000
) implements HighlyStructuredLocalizableParameterValue {
    @Override
    public HighlyStructuredLocalizableParameterValue.Type parameterType() {
        return HighlyStructuredLocalizableParameterValue.Type.CURRENCY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy