package com.reactlibrary.vishwamdkyclib;

import org.json.JSONObject;

import okhttp3.Response;
/**
 * This is data class or POJO used for hold network call responses on AsyncTask and retrieve it back on Main or UI thread.
 * **/
public class CrashProof {

    public String errorType;
    public Response response;
    String referenceid;
    String requestid;
    String bodyStatusCode;
    int headerStatusCode;
    JSONObject responseBodyJson;

    public CrashProof(String errorType, Response response) {
        this.errorType = errorType;
        this.response = response;
    }

    public String getErrorType() {
        return errorType;
    }

    public Response getResponse() {
        return response;
    }

    public String getReferenceid() {
        return referenceid;
    }

    public void setReferenceid(String referenceid) {
        this.referenceid = referenceid;
    }

    public String getRequestid() {
        return requestid;
    }

    public void setRequestid(String requestid) {
        this.requestid = requestid;
    }


    public String getBodyStatusCode() {
        return bodyStatusCode;
    }

    public void setBodyStatusCode(String bodyStatusCode) {
        this.bodyStatusCode = bodyStatusCode;
    }

    public int getHeaderStatusCode() {
        return headerStatusCode;
    }

    public void setHeaderStatusCode(int headerStatusCode) {
        this.headerStatusCode = headerStatusCode;
    }

    public JSONObject getResponseBodyJson() {
        return responseBodyJson;
    }

    public void setResponseBodyJson(JSONObject responseBodyJson) {
        this.responseBodyJson = responseBodyJson;
    }
}
