com.dingtalk.api.response.OapiServiceGetCorpTokenResponse Maven / Gradle / Ivy
package com.dingtalk.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.service.get_corp_token response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiServiceGetCorpTokenResponse extends TaobaoResponse {
private static final long serialVersionUID = 7183872595674142674L;
/**
* 授权方(企业)corp_access_token
*/
@ApiField("access_token")
private String accessToken;
/**
* errcode
*/
@ApiField("errcode")
private Long errcode;
/**
* errmsg
*/
@ApiField("errmsg")
private String errmsg;
/**
* 授权方(企业)corp_access_token超时时间
*/
@ApiField("expires_in")
private Long expiresIn;
public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}
public String getAccessToken( ) {
return this.accessToken;
}
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 setExpiresIn(Long expiresIn) {
this.expiresIn = expiresIn;
}
public Long getExpiresIn( ) {
return this.expiresIn;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy