com.dingtalk.baymax.framework.sdk.mercury.runtime.Runtime Maven / Gradle / Ivy
package com.dingtalk.baymax.framework.sdk.mercury.runtime;
import com.dingtalk.baymax.framework.sdk.mercury.card.SendCardReq;
import com.dingtalk.baymax.framework.sdk.mercury.card.UpdateCardReq;
import com.dingtalk.baymax.framework.sdk.mercury.card.UpdateCardStreamVarReq;
import com.dingtalk.baymax.framework.sdk.mercury.constant.ApiVersion;
import com.dingtalk.baymax.framework.sdk.mercury.interactive.BaseInteractive;
import java.util.Map;
/**
* @author [email protected]
* @Date 2023/6/20
*/
public interface Runtime {
ApiVersion API_VERSION = ApiVersion.MERCURY;
/**
* 设置RunId,标识定制链的一次执行
*
* @param runId
*/
void setRunId(String runId);
/**
* 显示获取ScenarioContext
*
* @param key
* @return
*/
Object getScenarioContext(String key);
/**
* 显示获取ExecuteContext
*
* @param key
* @return
*/
Object getExecuteContext(String key);
/**
* 显示设置ExecuteContext
*
* @param context
*/
void setContext(Map context);
@Deprecated
String sendCard(SendCardReq req);
String updateCard(UpdateCardReq req);
String sendCard(SendCardReq req, BaseInteractive interactive);
boolean updateCardStreamVar(UpdateCardStreamVarReq req);
}