package com.mobile.auth.gatewayauth.model.cucctoken; import com.mobile.auth.gatewayauth.ExceptionProcessor; import com.nirvana.tools.jsoner.JSONUtils; import com.nirvana.tools.jsoner.Jsoner; import java.lang.reflect.Field; import java.util.List; import org.json.JSONObject; public class ResultData implements Jsoner { private String accessCode; private String access_token; private long expires; private String mobile; private String operatorType; private String token_type; @Override // com.nirvana.tools.jsoner.Jsoner public void fromJson(JSONObject jSONObject) { try { JSONUtils.fromJson(jSONObject, this, (List<Field>) null); } catch (Throwable th) { ExceptionProcessor.processException(th); } } public String getAccessCode() { try { return this.accessCode; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public String getAccess_token() { try { return this.access_token; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public long getExpires() { try { return this.expires; } catch (Throwable th) { ExceptionProcessor.processException(th); return -1; } } public String getMobile() { try { return this.mobile; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public String getOperatorType() { try { return this.operatorType; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public String getToken_type() { try { return this.token_type; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public void setAccessCode(String str) { try { this.accessCode = str; } catch (Throwable th) { ExceptionProcessor.processException(th); } } public void setAccess_token(String str) { try { this.access_token = str; } catch (Throwable th) { ExceptionProcessor.processException(th); } } public void setExpires(long j) { try { this.expires = j; } catch (Throwable th) { ExceptionProcessor.processException(th); } } public void setMobile(String str) { try { this.mobile = str; } catch (Throwable th) { ExceptionProcessor.processException(th); } } public void setOperatorType(String str) { try { this.operatorType = str; } catch (Throwable th) { ExceptionProcessor.processException(th); } } public void setToken_type(String str) { try { this.token_type = str; } catch (Throwable th) { ExceptionProcessor.processException(th); } } @Override // com.nirvana.tools.jsoner.Jsoner public JSONObject toJson() { try { return JSONUtils.toJson(this, null); } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } public String toString() { try { return "ResultData{accessCode='" + this.accessCode + '\'' + ", operatorType='" + this.operatorType + '\'' + ", mobile='" + this.mobile + '\'' + ", access_token='" + this.access_token + '\'' + ", token_type='" + this.token_type + '\'' + ", expires='" + this.expires + '\'' + '}'; } catch (Throwable th) { ExceptionProcessor.processException(th); return null; } } }