package com.qiwu.chatbotbackend.actiongenerate.entity; import com.alibaba.fastjson.JSONArray; public class ActionPostElem { String botName = ""; String actionText = ""; String authorization = ""; Integer botId = 0; String categoryName = ""; JSONArray conditionIdPair = new JSONArray(); String botType = ""; public ActionPostElem(String actionText, Integer botId, String botName, String categoryName, String authorization) { this.botId = botId; this.botName = botName; this.actionText = actionText; this.categoryName = categoryName; this.authorization = authorization; } public ActionPostElem(String actionText, Integer botId, String botName, String categoryName, String authorization, String botType) { this.botId = botId; this.botName = botName; this.actionText = actionText; this.categoryName = categoryName; this.authorization = authorization; if(botType != null) this.botType = botType; } public ActionPostElem(Integer botId, String botName, String authorization) { this.authorization = authorization; this.botId = botId; this.botName = botName; } public ActionPostElem(Integer botId, String botName, String actionText, String authorization, String categoryName, JSONArray conditionIdPair) { this.botName = botName; this.actionText = actionText; this.authorization = authorization; this.botId = botId; this.categoryName = categoryName; this.conditionIdPair = conditionIdPair; } public String getBotName() { return botName; } public void setBotName(String botName) { this.botName = botName; } public String getActionText() { return actionText; } public void setActionText(String actionText) { this.actionText = actionText; } public String getAuthorization() { return authorization; } public void setAuthorization(String authorization) { this.authorization = authorization; } public String getCategoryName() { return categoryName; } public void setCategoryName(String categoryName) { this.categoryName = categoryName; } public Integer getBotId() { return botId; } public void setBotId(Integer botId) { this.botId = botId; } public JSONArray getConditionIdPair() { return conditionIdPair; } public void setConditionIdPair(JSONArray conditionIdPair) { this.conditionIdPair = conditionIdPair; } public String getBotType() { return botType; } public void setBotType(String botType) { this.botType = botType; } }