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


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

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 com.nirvana.tools.jsoner.JsonerTag;
import java.lang.reflect.Field;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;

public class GetCertifyIdTopResponse implements Jsoner {
    @JsonerTag(keyName = "request_id")
    private String requestId;
    @JsonerTag(keyName = "result")
    private GetCertifyIdResult result;

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

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

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

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

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

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