com.dingtalk.api.response.OapiRoleGetroleResponse Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.role.getrole response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiRoleGetroleResponse extends TaobaoResponse {
private static final long serialVersionUID = 3132565181974857682L;
/**
* dingOpenErrcode
*/
@ApiField("errcode")
private Long errcode;
/**
* errorMsg
*/
@ApiField("errmsg")
private String errmsg;
/**
* result
*/
@ApiField("role")
private OpenRole role;
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 setRole(OpenRole role) {
this.role = role;
}
public OpenRole getRole( ) {
return this.role;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* result
*
* @author top auto create
* @since 1.0, null
*/
public static class OpenRole extends TaobaoObject {
private static final long serialVersionUID = 4725787743158151615L;
/**
* 角色组id
*/
@ApiField("groupId")
private Long groupId;
/**
* 角色名称
*/
@ApiField("name")
private String name;
public Long getGroupId() {
return this.groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy