All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.api.response.OapiEduClassListbyteacherResponse Maven / Gradle / Ivy

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.class.listbyteacher response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class OapiEduClassListbyteacherResponse extends TaobaoResponse {

	private static final long serialVersionUID = 7374647562251856321L;

	/** 
	 * 错误编码
	 */
	@ApiField("errcode")
	private Long errcode;

	/** 
	 * 错误信息
	 */
	@ApiField("errmsg")
	private String errmsg;

	/** 
	 * 返回结果
	 */
	@ApiListField("result")
	@ApiField("result")
	private List 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(List result) {
		this.result = result;
	}
	public List 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 ConversationInfo extends TaobaoObject {
		private static final long serialVersionUID = 4324145584582725195L;
		/**
		 * 班级群名称
		 */
		@ApiField("title")
		private String title;
		/**
		 * 群类型,officialClassGroup: 家校群; teacherStudentGroup: 师生群
		 */
		@ApiField("type")
		private String type;
	
		public String getTitle() {
			return this.title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getType() {
			return this.type;
		}
		public void setType(String type) {
			this.type = type;
		}
	}
	
	/**
	 * 返回结果
	 *
	 * @author top auto create
	 * @since 1.0, null
	 */
	public static class Result extends TaobaoObject {
		private static final long serialVersionUID = 7332677988468767734L;
		/**
		 * 部门ID
		 */
		@ApiField("class_id")
		private Long classId;
		/**
		 * 群信息列表
		 */
		@ApiListField("conversation_list")
		@ApiField("conversation_info")
		private List conversationList;
		/**
		 * 每个班级的corpId
		 */
		@ApiField("corp_id")
		private String corpId;
		/**
		 * 班级学生人数
		 */
		@ApiField("count")
		private Long count;
		/**
		 * 是否毕业班
		 */
		@ApiField("graduate")
		private Boolean graduate;
		/**
		 * 班级名称
		 */
		@ApiField("name")
		private String name;
		/**
		 * 昵称
		 */
		@ApiField("nick")
		private String nick;
		/**
		 * 父部门ID
		 */
		@ApiField("super_id")
		private Long superId;
		/**
		 * 用户id
		 */
		@ApiField("userid")
		private String userid;
		/**
		 * 不再过滤群类型
		 */
		@ApiField("warning")
		private String warning;
	
		public Long getClassId() {
			return this.classId;
		}
		public void setClassId(Long classId) {
			this.classId = classId;
		}
		public List getConversationList() {
			return this.conversationList;
		}
		public void setConversationList(List conversationList) {
			this.conversationList = conversationList;
		}
		public String getCorpId() {
			return this.corpId;
		}
		public void setCorpId(String corpId) {
			this.corpId = corpId;
		}
		public Long getCount() {
			return this.count;
		}
		public void setCount(Long count) {
			this.count = count;
		}
		public Boolean getGraduate() {
			return this.graduate;
		}
		public void setGraduate(Boolean graduate) {
			this.graduate = graduate;
		}
		public String getName() {
			return this.name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getNick() {
			return this.nick;
		}
		public void setNick(String nick) {
			this.nick = nick;
		}
		public Long getSuperId() {
			return this.superId;
		}
		public void setSuperId(Long superId) {
			this.superId = superId;
		}
		public String getUserid() {
			return this.userid;
		}
		public void setUserid(String userid) {
			this.userid = userid;
		}
		public String getWarning() {
			return this.warning;
		}
		public void setWarning(String warning) {
			this.warning = warning;
		}
	}
	


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy