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

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

	private static final long serialVersionUID = 5593899391281944428L;

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

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

	/** 
	 * result
	 */
	@ApiField("result")
	private PageQueryResponse 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(PageQueryResponse result) {
		this.result = result;
	}
	public PageQueryResponse 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 CourseDetailDataDTO extends TaobaoObject {
		private static final long serialVersionUID = 5897983618486276119L;
		/**
		 * 数据业务唯一键(比如标识具体哪一次进入教室)
		 */
		@ApiField("category_biz_key")
		private String categoryBizKey;
		/**
		 * 数据类别编码
		 */
		@ApiField("category_code")
		private String categoryCode;
		/**
		 * 课程编码
		 */
		@ApiField("course_code")
		private String courseCode;
		/**
		 * 数据因子编码
		 */
		@ApiField("factor_code")
		private String factorCode;
		/**
		 * 用户组织ID
		 */
		@ApiField("user_cropid")
		private String userCropid;
		/**
		 * 用户ID
		 */
		@ApiField("userid")
		private String userid;
		/**
		 * 数据值(比如进入教室的时间戳)
		 */
		@ApiField("value")
		private String value;
	
		public String getCategoryBizKey() {
			return this.categoryBizKey;
		}
		public void setCategoryBizKey(String categoryBizKey) {
			this.categoryBizKey = categoryBizKey;
		}
		public String getCategoryCode() {
			return this.categoryCode;
		}
		public void setCategoryCode(String categoryCode) {
			this.categoryCode = categoryCode;
		}
		public String getCourseCode() {
			return this.courseCode;
		}
		public void setCourseCode(String courseCode) {
			this.courseCode = courseCode;
		}
		public String getFactorCode() {
			return this.factorCode;
		}
		public void setFactorCode(String factorCode) {
			this.factorCode = factorCode;
		}
		public String getUserCropid() {
			return this.userCropid;
		}
		public void setUserCropid(String userCropid) {
			this.userCropid = userCropid;
		}
		public String getUserid() {
			return this.userid;
		}
		public void setUserid(String userid) {
			this.userid = userid;
		}
		public String getValue() {
			return this.value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	/**
	 * result
	 *
	 * @author top auto create
	 * @since 1.0, null
	 */
	public static class PageQueryResponse extends TaobaoObject {
		private static final long serialVersionUID = 7289816646922882875L;
		/**
		 * 表示是否还有更多的数据
		 */
		@ApiField("has_more")
		private Boolean hasMore;
		/**
		 * list
		 */
		@ApiListField("list")
		@ApiField("course_detail_data_d_t_o")
		private List list;
		/**
		 * 表示下一次分页的游标,如果next_corsor为null或者has_more为false,表示没有更多的分页数据
		 */
		@ApiField("next_cursor")
		private Long nextCursor;
	
		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;
		}
	}
	


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy