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.
182 lines
4.4 KiB
182 lines
4.4 KiB
package com.fr.plugin.beans; |
|
|
|
import com.fr.decision.system.bean.message.MessageUrlType; |
|
import com.fr.decision.system.bean.message.MobileMessageType; |
|
import com.fr.plugin.entitys.YtOutputMyEntity; |
|
import com.fr.schedule.base.bean.output.BaseOutputAction; |
|
import com.fr.schedule.base.entity.AbstractScheduleEntity; |
|
import com.fr.schedule.base.type.RunType; |
|
import com.fr.third.fasterxml.jackson.annotation.JsonSubTypes; |
|
|
|
@JsonSubTypes.Type( |
|
value = YTOutputBean.class, |
|
name = "OutputYT" |
|
) |
|
public class YTOutputBean extends BaseOutputAction { |
|
private int terminal = 128; |
|
private String agentId = null; |
|
private String clientId = null; |
|
private String subject; |
|
private String content; |
|
private int linkOpenType; |
|
private String customizeLink; |
|
private String goUrl; |
|
private int type; |
|
private String mediaId; |
|
private String fromUserId; |
|
private int runType; |
|
private int sendType; |
|
|
|
public String getGoUrl() { |
|
return goUrl; |
|
} |
|
|
|
public void setGoUrl(String goUrl) { |
|
this.goUrl = goUrl; |
|
} |
|
|
|
public String getClientId() { |
|
return clientId; |
|
} |
|
|
|
public void setClientId(String clientId) { |
|
this.clientId = clientId; |
|
} |
|
|
|
public int getTerminal() { |
|
return terminal; |
|
} |
|
|
|
public void setTerminal(int terminal) { |
|
this.terminal = terminal; |
|
} |
|
|
|
public String getAgentId() { |
|
return agentId; |
|
} |
|
|
|
public void setAgentId(String agentId) { |
|
this.agentId = agentId; |
|
} |
|
|
|
public String getSubject() { |
|
return subject; |
|
} |
|
|
|
public void setSubject(String subject) { |
|
this.subject = subject; |
|
} |
|
|
|
public String getContent() { |
|
return content; |
|
} |
|
|
|
public void setContent(String content) { |
|
this.content = content; |
|
} |
|
|
|
public int getSendType() { |
|
return sendType; |
|
} |
|
|
|
public void setSendType(int sendType) { |
|
this.sendType = sendType; |
|
} |
|
|
|
public int getLinkOpenType() { |
|
return linkOpenType; |
|
} |
|
|
|
public void setLinkOpenType(int linkOpenType) { |
|
this.linkOpenType = linkOpenType; |
|
} |
|
|
|
public String getCustomizeLink() { |
|
return customizeLink; |
|
} |
|
|
|
public void setCustomizeLink(String customizeLink) { |
|
this.customizeLink = customizeLink; |
|
} |
|
|
|
public int getType() { |
|
return type; |
|
} |
|
|
|
public void setType(int type) { |
|
this.type = type; |
|
} |
|
|
|
public String getMediaId() { |
|
return mediaId; |
|
} |
|
|
|
public void setMediaId(String mediaId) { |
|
this.mediaId = mediaId; |
|
} |
|
|
|
public int getRunType() { |
|
return runType; |
|
} |
|
|
|
public void setRunType(int runType) { |
|
this.runType = runType; |
|
} |
|
//这里直接关联第一步的entity类 |
|
public Class<? extends AbstractScheduleEntity> outputActionEntityClass() { |
|
return YtOutputMyEntity.class; |
|
} |
|
|
|
public String getFromUserId() { |
|
return fromUserId; |
|
} |
|
|
|
public void setFromUserId(String fromUserId) { |
|
this.fromUserId = fromUserId; |
|
} |
|
|
|
@Override |
|
public AbstractScheduleEntity createOutputActionEntity() { |
|
YtOutputMyEntity var1 = new YtOutputMyEntity(); |
|
var1.setId(this.getId()); |
|
var1.setTerminal(this.getTerminal()); |
|
var1.setAgentId(this.getAgentId()); |
|
var1.setSubject(this.getSubject()); |
|
var1.setContent(this.getContent()); |
|
var1.setGoUrl(this.getGoUrl()); |
|
var1.setLinkOpenType(this.getLinkOpenType()); |
|
var1.setCustomizeLink(this.getCustomizeLink()); |
|
var1.setType(this.getType()); |
|
var1.setMediaId(this.getMediaId()); |
|
var1.setActionName(this.getActionName()); |
|
var1.setResultURL(this.getResultURL()); |
|
var1.setClientId(this.getClientId()); |
|
var1.setRunType(this.getRunType()); |
|
var1.setSendType(this.getSendType()); |
|
var1.setFromUserId(this.getFromUserId()); |
|
// var1.setExecuteByUser(this.willExecuteByUser()); |
|
return var1; |
|
} |
|
|
|
// @Override |
|
// public OutputMyEntity createEntity() { |
|
// |
|
// } |
|
|
|
public YTOutputBean() { |
|
this.linkOpenType = MessageUrlType.INNER.toInt(); |
|
this.type = MobileMessageType.TEXT.toInt(); |
|
this.runType = RunType.CLIENT_NOTIFICATION.getValue(); |
|
} |
|
|
|
@Override |
|
public boolean willExecuteByUser() { |
|
return true; |
|
} |
|
|
|
@Override |
|
public RunType runType() { |
|
|
|
return RunType.CLIENT_NOTIFICATION; |
|
} |
|
}
|
|
|