翰林优商.apk(点击下载) / PscQueryConfigResponse.java


package com.mobile.auth.gatewayauth.model.psc_sdk_config;

import com.mobile.auth.gatewayauth.ExceptionProcessor;
import com.nirvana.tools.jsoner.JSONUtils;
import com.nirvana.tools.jsoner.JsonType;
import com.nirvana.tools.jsoner.Jsoner;
import java.lang.reflect.Field;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;

public class PscQueryConfigResponse implements Jsoner {
    private String request_id;
    private Result result;

    @Override // com.nirvana.tools.jsoner.Jsoner
    public void fromJson(JSONObject jSONObject) {
        try {
            JSONUtils.fromJson(jSONObject, this, (List<Field>) null);
            if (jSONObject != null) {
                setResult((Result) JSONUtils.fromJson(jSONObject.optJSONObject("result"), (JsonType) new JsonType<Result>() {
                    /* class com.mobile.auth.gatewayauth.model.psc_sdk_config.PscQueryConfigResponse.AnonymousClass1 */
                }, (List<Field>) null));
            }
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
        }
    }

    public String getRequest_id() {
        try {
            return this.request_id;
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
            return null;
        }
    }

    public Result getResult() {
        try {
            return this.result;
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
            return null;
        }
    }

    public void setRequest_id(String str) {
        try {
            this.request_id = str;
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
        }
    }

    public void setResult(Result result2) {
        try {
            this.result = result2;
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
        }
    }

    @Override // com.nirvana.tools.jsoner.Jsoner
    public JSONObject toJson() {
        try {
            JSONObject json = JSONUtils.toJson(this, null);
            try {
                Result result2 = this.result;
                json.put("result", result2 == null ? new JSONObject() : result2.toJson());
            } catch (JSONException e) {
                e.printStackTrace();
            }
            return json;
        } catch (Throwable th) {
            ExceptionProcessor.processException(th);
            return null;
        }
    }
}