com.dingtalk.api.response.OapiEduUserRelationListResponse Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.response;
import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.edu.user.relation.list response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiEduUserRelationListResponse extends TaobaoResponse {
private static final long serialVersionUID = 1174826998474985566L;
/**
* 错误码,只有success为false才有效
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误信息,只有success为false才有效
*/
@ApiField("errmsg")
private String errmsg;
/**
* 结果集
*/
@ApiField("result")
private Result result;
/**
* 是否成功
*/
@ApiField("success")
private Boolean success;
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
public Long getErrcode( ) {
return this.errcode;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public String getErrmsg( ) {
return this.errmsg;
}
public void setResult(Result result) {
this.result = result;
}
public Result getResult( ) {
return this.result;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Boolean getSuccess( ) {
return this.success;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* 关系列表
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenEduUserRelationDetail extends TaobaoObject {
private static final long serialVersionUID = 6218278961634961661L;
/**
* 班级id
*/
@ApiField("class_id")
private Long classId;
/**
* 监护人id
*/
@ApiField("from_userid")
private String fromUserid;
/**
* 关系code
*/
@ApiField("relation_code")
private String relationCode;
/**
* 关系名
*/
@ApiField("relation_name")
private String relationName;
/**
* 学生id
*/
@ApiField("to_userid")
private String toUserid;
public Long getClassId() {
return this.classId;
}
public void setClassId(Long classId) {
this.classId = classId;
}
public String getFromUserid() {
return this.fromUserid;
}
public void setFromUserid(String fromUserid) {
this.fromUserid = fromUserid;
}
public String getRelationCode() {
return this.relationCode;
}
public void setRelationCode(String relationCode) {
this.relationCode = relationCode;
}
public String getRelationName() {
return this.relationName;
}
public void setRelationName(String relationName) {
this.relationName = relationName;
}
public String getToUserid() {
return this.toUserid;
}
public void setToUserid(String toUserid) {
this.toUserid = toUserid;
}
}
/**
* 结果集
*
* @author top auto create
* @since 1.0, null
*/
public static class Result extends TaobaoObject {
private static final long serialVersionUID = 4684766559622826618L;
/**
* 是否还存在数据
*/
@ApiField("has_more")
private Boolean hasMore;
/**
* 关系列表
*/
@ApiListField("relations")
@ApiField("open_edu_user_relation_detail")
private List relations;
public Boolean getHasMore() {
return this.hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
public List getRelations() {
return this.relations;
}
public void setRelations(List relations) {
this.relations = relations;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy