com.dingtalk.api.request.OapiConferenceParticipantSyncRequest 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.OapiConferenceParticipantSyncResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.conference.participant.sync request
*
* @author top auto create
* @since 1.0, 2019.07.03
*/
public class OapiConferenceParticipantSyncRequest extends BaseTaobaoRequest {
/**
* 全量同步id,第一批上传时为空,后续批次需要带上
*/
private String batchId;
/**
* 标识批次,从1递增
*/
private Long batchIndex;
/**
* 会务id
*/
private String conferenceId;
/**
* 是否最后一批
*/
private Boolean isFinished;
/**
* 参会人员id列表
*/
private String participantUseridList;
/**
* 操作用户id
*/
private String userid;
public void setBatchId(String batchId) {
this.batchId = batchId;
}
public String getBatchId() {
return this.batchId;
}
public void setBatchIndex(Long batchIndex) {
this.batchIndex = batchIndex;
}
public Long getBatchIndex() {
return this.batchIndex;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getConferenceId() {
return this.conferenceId;
}
public void setIsFinished(Boolean isFinished) {
this.isFinished = isFinished;
}
public Boolean getIsFinished() {
return this.isFinished;
}
public void setParticipantUseridList(String participantUseridList) {
this.participantUseridList = participantUseridList;
}
public String getParticipantUseridList() {
return this.participantUseridList;
}
public void setUserid(String userid) {
this.userid = userid;
}
public String getUserid() {
return this.userid;
}
public String getApiMethodName() {
return "dingtalk.oapi.conference.participant.sync";
}
private String topResponseType = Constants.RESPONSE_TYPE_DINGTALK_OAPI;
public String getTopResponseType() {
return this.topResponseType;
}
public void setTopResponseType(String topResponseType) {
this.topResponseType = topResponseType;
}
public String getTopApiCallType() {
return DingTalkConstants.CALL_TYPE_OAPI;
}
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("batch_id", this.batchId);
txtParams.put("batch_index", this.batchIndex);
txtParams.put("conference_id", this.conferenceId);
txtParams.put("is_finished", this.isFinished);
txtParams.put("participant_userid_list", this.participantUseridList);
txtParams.put("userid", this.userid);
if(this.udfParams != null) {
txtParams.putAll(this.udfParams);
}
return txtParams;
}
public Class getResponseClass() {
return OapiConferenceParticipantSyncResponse.class;
}
public void check() throws ApiRuleException {
RequestCheckUtils.checkNotEmpty(batchIndex, "batchIndex");
RequestCheckUtils.checkNotEmpty(conferenceId, "conferenceId");
RequestCheckUtils.checkNotEmpty(isFinished, "isFinished");
RequestCheckUtils.checkNotEmpty(participantUseridList, "participantUseridList");
RequestCheckUtils.checkMaxListSize(participantUseridList, 1000, "participantUseridList");
RequestCheckUtils.checkNotEmpty(userid, "userid");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy