/*    */ package cn.com.esgcc.ai.matrix.sdk.response;
/*    */ 
/*    */ import java.io.Serializable;
/*    */ 
/*    */ public class SdkResponse<T> implements Serializable {
/*    */   public static SdkResponse fail(String code, String msg) {
/*  7 */     SdkResponse sdkResponse = new SdkResponse();
/*  8 */     sdkResponse.setCode(code);
/*  9 */     sdkResponse.setMsg(msg);
/* 10 */     return sdkResponse;
/*    */   }
/*    */ 
/*    */   
/*    */   private static final long serialVersionUID = -4696008537295855861L;
/*    */   private T data;
/*    */   
/*    */   public T getData() {
/* 18 */     return this.data;
/*    */   }
/*    */   private String code; private String msg;
/*    */   public void setData(T data) {
/* 22 */     this.data = data;
/*    */   }
/*    */   
/*    */   public String getCode() {
/* 26 */     return this.code;
/*    */   }
/*    */   
/*    */   public void setCode(String code) {
/* 30 */     this.code = code;
/*    */   }
/*    */   
/*    */   public String getMsg() {
/* 34 */     return this.msg;
/*    */   }
/*    */   
/*    */   public void setMsg(String msg) {
/* 38 */     this.msg = msg;
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public String toString() {
/* 45 */     return "SdkResponse{data=" + this.data + ", code='" + this.code + '\'' + ", msg='" + this.msg + '\'' + '}';
/*    */   }
/*    */ }


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