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

com.dingtalk.api.response.OapiEduCourseListResponse 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.course.list response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class OapiEduCourseListResponse extends TaobaoResponse {

	private static final long serialVersionUID = 3643554458481244293L;

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

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

	/** 
	 * result
	 */
	@ApiField("result")
	private ListCourseResponse 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(ListCourseResponse result) {
		this.result = result;
	}
	public ListCourseResponse 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);
    }
	
	/**
	 * list
	 *
	 * @author top auto create
	 * @since 1.0, null
	 */
	public static class Classrooms extends TaobaoObject {
		private static final long serialVersionUID = 5589466378897989597L;
		/**
		 * 课堂交互信息
		 */
		@ApiField("interact_info")
		private String interactInfo;
		/**
		 * 课堂唯一标识id
		 */
		@ApiField("target_id")
		private String targetId;
	
		public String getInteractInfo() {
			return this.interactInfo;
		}
		public void setInteractInfo(String interactInfo) {
			this.interactInfo = interactInfo;
		}
		public String getTargetId() {
			return this.targetId;
		}
		public void setTargetId(String targetId) {
			this.targetId = targetId;
		}
	}
	
	/**
	 * list
	 *
	 * @author top auto create
	 * @since 1.0, null
	 */
	public static class CourseVO extends TaobaoObject {
		private static final long serialVersionUID = 2292837165354424193L;
		/**
		 * 业务唯一键
		 */
		@ApiField("biz_key")
		private String bizKey;
		/**
		 * list
		 */
		@ApiListField("classrooms")
		@ApiField("classrooms")
		private List classrooms;
		/**
		 * 课程编码
		 */
		@ApiField("code")
		private String code;
		/**
		 * 创建者的组织CorpId
		 */
		@ApiField("creator_corpid")
		private String creatorCorpid;
		/**
		 * 创建者的用户ID
		 */
		@ApiField("creator_userid")
		private String creatorUserid;
		/**
		 * 创建者的用户名
		 */
		@ApiField("creator_username")
		private String creatorUsername;
		/**
		 * 结束时间,Unix毫秒时间戳
		 */
		@ApiField("end_time")
		private Long endTime;
		/**
		 * 课程扩展信息
		 */
		@ApiField("ext_info")
		private String extInfo;
		/**
		 * 课程介绍
		 */
		@ApiField("introduce")
		private String introduce;
		/**
		 * 课程名称
		 */
		@ApiField("name")
		private String name;
		/**
		 * 新版在线课堂
		 */
		@ApiField("platform")
		private Long platform;
		/**
		 * 开始时间,Unix毫秒时间戳
		 */
		@ApiField("start_time")
		private Long startTime;
		/**
		 * 课程状态 -1取消,0未开始,1进行中,2已结束
		 */
		@ApiField("status")
		private Long status;
		/**
		 * 老的的组织CorpId
		 */
		@ApiField("teacher_corpid")
		private String teacherCorpid;
		/**
		 * 老师的用户ID
		 */
		@ApiField("teacher_userid")
		private String teacherUserid;
		/**
		 * 老师的用户名
		 */
		@ApiField("teacher_username")
		private String teacherUsername;
	
		public String getBizKey() {
			return this.bizKey;
		}
		public void setBizKey(String bizKey) {
			this.bizKey = bizKey;
		}
		public List getClassrooms() {
			return this.classrooms;
		}
		public void setClassrooms(List classrooms) {
			this.classrooms = classrooms;
		}
		public String getCode() {
			return this.code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getCreatorCorpid() {
			return this.creatorCorpid;
		}
		public void setCreatorCorpid(String creatorCorpid) {
			this.creatorCorpid = creatorCorpid;
		}
		public String getCreatorUserid() {
			return this.creatorUserid;
		}
		public void setCreatorUserid(String creatorUserid) {
			this.creatorUserid = creatorUserid;
		}
		public String getCreatorUsername() {
			return this.creatorUsername;
		}
		public void setCreatorUsername(String creatorUsername) {
			this.creatorUsername = creatorUsername;
		}
		public Long getEndTime() {
			return this.endTime;
		}
		public void setEndTime(Long endTime) {
			this.endTime = endTime;
		}
		public String getExtInfo() {
			return this.extInfo;
		}
		public void setExtInfo(String extInfo) {
			this.extInfo = extInfo;
		}
		public String getIntroduce() {
			return this.introduce;
		}
		public void setIntroduce(String introduce) {
			this.introduce = introduce;
		}
		public String getName() {
			return this.name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public Long getPlatform() {
			return this.platform;
		}
		public void setPlatform(Long platform) {
			this.platform = platform;
		}
		public Long getStartTime() {
			return this.startTime;
		}
		public void setStartTime(Long startTime) {
			this.startTime = startTime;
		}
		public Long getStatus() {
			return this.status;
		}
		public void setStatus(Long status) {
			this.status = status;
		}
		public String getTeacherCorpid() {
			return this.teacherCorpid;
		}
		public void setTeacherCorpid(String teacherCorpid) {
			this.teacherCorpid = teacherCorpid;
		}
		public String getTeacherUserid() {
			return this.teacherUserid;
		}
		public void setTeacherUserid(String teacherUserid) {
			this.teacherUserid = teacherUserid;
		}
		public String getTeacherUsername() {
			return this.teacherUsername;
		}
		public void setTeacherUsername(String teacherUsername) {
			this.teacherUsername = teacherUsername;
		}
	}
	
	/**
	 * result
	 *
	 * @author top auto create
	 * @since 1.0, null
	 */
	public static class ListCourseResponse extends TaobaoObject {
		private static final long serialVersionUID = 1858188933981218756L;
		/**
		 * 是否还有更多数据
		 */
		@ApiField("has_more")
		private Boolean hasMore;
		/**
		 * list
		 */
		@ApiListField("list")
		@ApiField("course_v_o")
		private List list;
		/**
		 * 表示下一次分页的游标,如果next_corsor为null或者has_more为false,表示没有更多的分页数据
		 */
		@ApiField("next_cursor")
		private Long nextCursor;
		/**
		 * 数量总计100
		 */
		@ApiField("total_count")
		private Long totalCount;
	
		public Boolean getHasMore() {
			return this.hasMore;
		}
		public void setHasMore(Boolean hasMore) {
			this.hasMore = hasMore;
		}
		public List getList() {
			return this.list;
		}
		public void setList(List list) {
			this.list = list;
		}
		public Long getNextCursor() {
			return this.nextCursor;
		}
		public void setNextCursor(Long nextCursor) {
			this.nextCursor = nextCursor;
		}
		public Long getTotalCount() {
			return this.totalCount;
		}
		public void setTotalCount(Long totalCount) {
			this.totalCount = totalCount;
		}
	}
	


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy