package xyz.stream.api.entity;

import com.google.gson.JsonElement;
import xyz.stream.utils.m;

/* JADX INFO: loaded from: classes3.dex */
public class BaseEntity {
    private int code;
    private JsonElement data;
    private String msg;

    public int getCode() {
        return this.code;
    }

    public JsonElement getData() {
        return this.data;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setCode(int i10) {
        this.code = i10;
    }

    public void setData(Object obj) {
        if (obj == null) {
            this.data = null;
        } else {
            this.data = obj instanceof JsonElement ? (JsonElement) obj : m.f36162a.toJsonTree(obj);
        }
    }

    public void setMsg(String str) {
        this.msg = str;
    }
}
