com.dingtalk.baymax.framework.sdk.mercury.plugin.ToolExecuteResult Maven / Gradle / Ivy
package com.dingtalk.baymax.framework.sdk.mercury.plugin;
import java.io.Serializable;
public class ToolExecuteResult implements Serializable {
public ToolExecuteResult(Object output) {
setOutput(output);
}
public ToolExecuteResult(Object output, boolean interrupted) {
setOutput(output);
setInterrupted(interrupted);
}
public static ToolExecuteResult toConfirmAuth(Object loginAuthInfo) {
ToolExecuteResult toolExecuteResult = new ToolExecuteResult(null);
toolExecuteResult.setAuthentication(loginAuthInfo);
return toolExecuteResult;
}
/**
* 工具返回的内容
*/
private Object output;
/**
* 是否中断
*/
private boolean interrupted;
/**
* 授权相关操作
*/
private Object authentication;
public Object getOutput() {
return output;
}
public void setOutput(Object output) {
this.output = output;
}
public boolean isInterrupted() {
return interrupted;
}
public void setInterrupted(boolean interrupted) {
this.interrupted = interrupted;
}
public Object getAuthentication() {
return authentication;
}
public void setAuthentication(Object authentication) {
this.authentication = authentication;
}
}