com.dingtalk.api.response.OapiUserListsimpleResponse 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.user.listsimple response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiUserListsimpleResponse extends TaobaoResponse {
private static final long serialVersionUID = 5272798625643718157L;
/**
* 错误码。0代表成功。
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误信息。
*/
@ApiField("errmsg")
private String errmsg;
/**
* 返回结果
*/
@ApiField("result")
private PageResult result;
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(PageResult result) {
this.result = result;
}
public PageResult getResult( ) {
return this.result;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* 用户信息列表
*
* @author top auto create
* @since 1.0, null
*/
public static class ListUserSimpleResponse extends TaobaoObject {
private static final long serialVersionUID = 7212452325871783326L;
/**
* 用户姓名
*/
@ApiField("name")
private String name;
/**
* 用户id
*/
@ApiField("userid")
private String userid;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getUserid() {
return this.userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
}
/**
* 返回结果
*
* @author top auto create
* @since 1.0, null
*/
public static class PageResult extends TaobaoObject {
private static final long serialVersionUID = 8478962629673273735L;
/**
* 是否还有更多的数据
*/
@ApiField("has_more")
private Boolean hasMore;
/**
* 用户信息列表
*/
@ApiListField("list")
@ApiField("list_user_simple_response")
private List list;
/**
* 下一次分页的游标,如果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