package com.seewo.sdk.internal.model;

import android.text.TextUtils;
import b.c.c.l.a;
import com.ifpdos.autotest.lancontrol.module.other.InvocationModel;
import com.ifpdos.autotest.model.RequestSession;
import com.seewo.sdk.internal.model.SDKResponse;

/* JADX INFO: loaded from: classes.dex */
public class SDKFactoryResponse implements SDKParsable {
    private String mParamsJson;
    private String mRequestName;
    private String mResponseName;
    private SDKResponse.Status mStatus;

    private SDKFactoryResponse() {
        this.mStatus = SDKResponse.Status.SUCCESS;
    }

    public String getParamsJson() {
        return this.mParamsJson;
    }

    public String getRequestName() {
        return this.mRequestName;
    }

    public String getResponseName() {
        return this.mResponseName;
    }

    public SDKResponse.Status getStatus() {
        return this.mStatus;
    }

    public void setParamsJson(String str) {
        this.mParamsJson = str;
    }

    public void setRequestName(String str) {
        this.mRequestName = str;
    }

    public void setResponseName(String str) {
        this.mResponseName = str;
    }

    public void setStatus(SDKResponse.Status status) {
        this.mStatus = status;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("response = ");
        sb.append(this.mResponseName);
        sb.append(" request = ");
        sb.append(this.mRequestName);
        sb.append(" json = ");
        sb.append(TextUtils.isEmpty(this.mParamsJson) ? "{}" : this.mParamsJson);
        return sb.toString();
    }

    public SDKFactoryResponse(String str, InvocationModel invocationModel) {
        SDKResponse.Status status = SDKResponse.Status.SUCCESS;
        this.mStatus = status;
        this.mStatus = status;
        this.mResponseName = RequestSession.RequestType.OTHER.name();
        this.mParamsJson = str;
        this.mRequestName = invocationModel.getClassName() + "." + invocationModel.getMethodName();
    }

    public SDKFactoryResponse(SDKResponse sDKResponse, String str) {
        this();
        this.mStatus = sDKResponse.getStatus();
        this.mResponseName = sDKResponse.getResponseName();
        this.mParamsJson = sDKResponse.getParamsJson();
        this.mRequestName = str;
    }

    public SDKFactoryResponse(String str, String str2) {
        this((SDKResponse) a.f(str, SDKResponse.class), str2);
    }
}
