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

com.unblu.webapi.model.v3.PostMessageData Maven / Gradle / Ivy

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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy