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

com.dingtalk.api.response.OapiAttendanceScheduleShiftListbydaysResponse 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 java.util.Date;

import com.taobao.api.TaobaoResponse;

/**
 * TOP DingTalk-API: dingtalk.oapi.attendance.schedule.shift.listbydays response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class OapiAttendanceScheduleShiftListbydaysResponse extends TaobaoResponse {

	private static final long serialVersionUID = 2182122825497232796L;

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

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

	/** 
	 * 返回结果
	 */
	@ApiListField("result")
	@ApiField("top_day_schedule_shift_vo")
	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 TopDayScheduleShiftVo extends TaobaoObject {
		private static final long serialVersionUID = 7819122559631727553L;
		/**
		 * 企业id
		 */
		@ApiField("corp_id")
		private String corpId;
		/**
		 * 考勤组id
		 */
		@ApiField("group_id")
		private Long groupId;
		/**
		 * 班次id
		 */
		@ApiListField("shift_ids")
		@ApiField("number")
		private List shiftIds;
		/**
		 * 班次名称
		 */
		@ApiListField("shift_names")
		@ApiField("string")
		private List shiftNames;
		/**
		 * 班次版本id
		 */
		@ApiListField("shift_versions")
		@ApiField("number")
		private List shiftVersions;
		/**
		 * 人员userId
		 */
		@ApiField("userid")
		private String userid;
		/**
		 * 工作日
		 */
		@ApiField("work_date")
		private Date workDate;
	
		public String getCorpId() {
			return this.corpId;
		}
		public void setCorpId(String corpId) {
			this.corpId = corpId;
		}
		public Long getGroupId() {
			return this.groupId;
		}
		public void setGroupId(Long groupId) {
			this.groupId = groupId;
		}
		public List getShiftIds() {
			return this.shiftIds;
		}
		public void setShiftIds(List shiftIds) {
			this.shiftIds = shiftIds;
		}
		public List getShiftNames() {
			return this.shiftNames;
		}
		public void setShiftNames(List shiftNames) {
			this.shiftNames = shiftNames;
		}
		public List getShiftVersions() {
			return this.shiftVersions;
		}
		public void setShiftVersions(List shiftVersions) {
			this.shiftVersions = shiftVersions;
		}
		public String getUserid() {
			return this.userid;
		}
		public void setUserid(String userid) {
			this.userid = userid;
		}
		public Date getWorkDate() {
			return this.workDate;
		}
		public void setWorkDate(Date workDate) {
			this.workDate = workDate;
		}
	}
	


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy