package com.github.catvod.net; import android.text.TextUtils; import java.util.HashMap; import java.util.List; import java.util.Map; public class OkResult { private final int code; private final String body; private final Map> resp; public OkResult() { this.code = 500; this.body = ""; this.resp = new HashMap<>(); } public OkResult(int code, String body, Map> resp) { this.code = code; this.body = body; this.resp = resp; } public int getCode() { return code; } public String getBody() { return TextUtils.isEmpty(body) ? "" : body; } public Map> getResp() { return resp; } }