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

it.auties.whatsapp.model.product.Product Maven / Gradle / Ivy

package it.auties.whatsapp.model.product;

import it.auties.protobuf.annotation.ProtobufMessageName;
import it.auties.protobuf.annotation.ProtobufProperty;
import it.auties.protobuf.model.ProtobufMessage;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.message.standard.ImageMessage;


/**
 * A model class that represents a product
 */
@ProtobufMessageName("Message.ListMessage.Product")
public record Product(
        @ProtobufProperty(index = 1, type = ProtobufType.OBJECT)
        ImageMessage image,
        @ProtobufProperty(index = 2, type = ProtobufType.STRING)
        String id,
        @ProtobufProperty(index = 3, type = ProtobufType.STRING)
        String title,
        @ProtobufProperty(index = 4, type = ProtobufType.STRING)
        String description,
        @ProtobufProperty(index = 5, type = ProtobufType.STRING)
        String currencyCode,
        @ProtobufProperty(index = 6, type = ProtobufType.INT64)
        long priceAmount1000,
        @ProtobufProperty(index = 7, type = ProtobufType.STRING)
        String retailerId,
        @ProtobufProperty(index = 8, type = ProtobufType.STRING)
        String url,
        @ProtobufProperty(index = 9, type = ProtobufType.UINT32)
        int productImageCount,
        @ProtobufProperty(index = 11, type = ProtobufType.STRING)
        String firstImageId,
        @ProtobufProperty(index = 12, type = ProtobufType.INT64)
        long salePriceAmount1000
) implements ProtobufMessage {

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy