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

com.replyyes.facebook.messenger.bean.Element Maven / Gradle / Ivy

There is a newer version: 0.1.0
Show newest version
package com.replyyes.facebook.messenger.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * The {@link OutboundPayload} for {@link Attachment} instances can have a list of Elements. For example,
 * template messages require elements.
 *
 * https://developers.facebook.com/docs/messenger-platform/send-api-reference
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(Include.NON_NULL)
public class Element {
    /**
     * Bubble title. Required.
     */
    private String title;

    /**
     * URL that is opened when bubble is tapped. Optional.
     */
    @JsonProperty("item_url")
    private String itemUrl;

    /**
     * Bubble image. Optional.
     */
    @JsonProperty("image_url")
    private String imageUrl;

    /**
     * Bubble subtitle. Optional.
     */
    private String subtitle;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy