/*    */ package cn.com.esgcc.ai.matrix.sdk.response;
/*    */ 
/*    */ import cn.hutool.json.JSONObject;
/*    */ 
/*    */ public class SdkTokenResponse
/*    */   extends SdkResponse
/*    */ {
/*    */   private String accessToken;
/*    */   private String refreshToken;
/*    */   private Integer expiresIn;
/*    */   
/*    */   public String getAccessToken() {
/* 13 */     JSONObject data = (JSONObject)getData();
/* 14 */     return data.getStr("access_token");
/*    */   }
/*    */   
/*    */   public void setAccessToken(String accessToken) {
/* 18 */     this.accessToken = accessToken;
/*    */   }
/*    */   
/*    */   public String getRefreshToken() {
/* 22 */     JSONObject data = (JSONObject)getData();
/* 23 */     return data.getStr("refresh_token");
/*    */   }
/*    */   
/*    */   public void setRefreshToken(String refreshToken) {
/* 27 */     this.refreshToken = refreshToken;
/*    */   }
/*    */   
/*    */   public Integer getExpiresIn() {
/* 31 */     JSONObject data = (JSONObject)getData();
/* 32 */     return data.getInt("expires_in");
/*    */   }
/*    */   
/*    */   public void setExpiresIn(Integer expiresIn) {
/* 36 */     this.expiresIn = expiresIn;
/*    */   }
/*    */ }


/* Location:              C:\Users\ningj\Desktop\java-sdk-1.0.0-SNAPSHOT\!\cn\com\esgcc\ai\matrix\sdk\response\SdkTokenResponse.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */