com.dingtalk.api.request.CorpSmartdeviceReceptionistPushinfoRequest Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.request;
import com.taobao.api.internal.util.RequestCheckUtils;
import java.util.Map;
import java.util.List;
import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.dingtalk.api.DingTalkConstants;
import com.taobao.api.Constants;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.TaobaoUtils;
import com.dingtalk.api.response.CorpSmartdeviceReceptionistPushinfoResponse;
/**
* TOP DingTalk-API: dingtalk.corp.smartdevice.receptionist.pushinfo request
*
* @author top auto create
* @since 1.0, 2019.07.03
*/
public class CorpSmartdeviceReceptionistPushinfoRequest extends BaseTaobaoRequest {
/**
* 展示模板需要的变量数据
*/
private String descContent;
/**
* 智能前台信息展示模板ID,需要向智能硬件团队申请
*/
private String descTemplate;
/**
* 微应用agentID
*/
private Long microappAgentId;
public void setDescContent(String descContent) {
this.descContent = descContent;
}
public String getDescContent() {
return this.descContent;
}
public void setDescTemplate(String descTemplate) {
this.descTemplate = descTemplate;
}
public String getDescTemplate() {
return this.descTemplate;
}
public void setMicroappAgentId(Long microappAgentId) {
this.microappAgentId = microappAgentId;
}
public Long getMicroappAgentId() {
return this.microappAgentId;
}
public String getApiMethodName() {
return "dingtalk.corp.smartdevice.receptionist.pushinfo";
}
private String topResponseType ;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_TOP;
}
private String topHttpMethod = DingTalkConstants.HTTP_METHOD_POST;
public String getTopHttpMethod() {
return this.topHttpMethod;
}
public void setTopHttpMethod(String topHttpMethod) {
this.topHttpMethod = topHttpMethod;
}
public void setHttpMethod(String httpMethod) {
this.setTopHttpMethod(httpMethod);
}
public Map getTextParams() {
TaobaoHashMap txtParams = new TaobaoHashMap();
txtParams.put("desc_content", this.descContent);
txtParams.put("desc_template", this.descTemplate);
txtParams.put("microapp_agent_id", this.microappAgentId);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return CorpSmartdeviceReceptionistPushinfoResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(descContent, "descContent");
RequestCheckUtils.checkNotEmpty(descTemplate, "descTemplate");
RequestCheckUtils.checkNotEmpty(microappAgentId, "microappAgentId");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy