com.dingtalk.api.response.OapiSmartworkHrmFlexibleApplytokenResponse Maven / Gradle / Ivy
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.smartwork.hrm.flexible.applytoken response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiSmartworkHrmFlexibleApplytokenResponse extends TaobaoResponse {
private static final long serialVersionUID = 7847925688895569563L;
/**
* 错误码
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误描述
*/
@ApiField("errmsg")
private String errmsg;
/**
* 结果
*/
@ApiField("result")
private FlexibleTokenVo 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(FlexibleTokenVo result) {
this.result = result;
}
public FlexibleTokenVo 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 FlexibleTokenVo extends TaobaoObject {
private static final long serialVersionUID = 6117786677288433855L;
/**
* 令牌
*/
@ApiField("token")
private String token;
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy