You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
828 B

package xyz.wbsite.mcp.basic.model;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 文本内容数据类
* 用于封装文本类型的内容数据
*
* @author wangbing
*/
public class TextContentData extends Data {
@JsonProperty("type")
private String type;
@JsonProperty("text")
private String text;
public TextContentData() {
}
public TextContentData(String type, String text) {
this.type = type;
this.text = text;
}
public TextContentData(String text) {
this("text", text);
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}

Powered by TurnKey Linux.