package com.ss.android.ugc.aweme.ecommercebase.network;

import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;

public final class StatusResponse<T> {
    @c(LIZ = "status_code")
    public int code = -1;
    @c(LIZ = "data")
    public T data;
    @c(LIZ = "status_message")
    public final String message = "";

    static {
        Covode.recordClassIndex(73061);
    }

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

    public final T getData() {
        return this.data;
    }

    public final String getMessage() {
        return this.message;
    }

    public final boolean isSuccess() {
        if (this.code == 0) {
            return true;
        }
        return false;
    }

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

    public final void setData(T t) {
        this.data = t;
    }
}
