com.unblu.webapi.model.v3.PostMessageData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of models-v3 Show documentation
Show all versions of models-v3 Show documentation
Java classes corresponding to the JSON bodies
The newest version!
package com.unblu.webapi.model.v3;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", visible = true)
@JsonSubTypes({
@JsonSubTypes.Type(value = CardPostMessageData.class, name = "CARD"),
@JsonSubTypes.Type(value = FilePostMessageData.class, name = "FILE"),
@JsonSubTypes.Type(value = ListPostMessageData.class, name = "LIST"),
@JsonSubTypes.Type(value = MultichoiceQuestionPostMessageData.class, name = "MULTICHOICE_QUESTION"),
@JsonSubTypes.Type(value = RatingQuestionPostMessageData.class, name = "RATING_QUESTION"),
@JsonSubTypes.Type(value = ReplyPostMessageData.class, name = "REPLY"),
@JsonSubTypes.Type(value = TextPostMessageData.class, name = "TEXT"),
@JsonSubTypes.Type(value = TextQuestionPostMessageData.class, name = "TEXT_QUESTION"),
})
public interface PostMessageData {
void setType(EPostMessageType type);
EPostMessageType getType();
PostMessageData type(EPostMessageType type);
void setFallbackText(String fallbackText);
String getFallbackText();
PostMessageData fallbackText(String fallbackText);
}