FENGMI蜂蜜影视 原始JAR及配置
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

38 lines
772 B

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<String, List<String>> resp;
public OkResult() {
this.code = 500;
this.body = "";
this.resp = new HashMap<>();
}
public OkResult(int code, String body, Map<String, List<String>> 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<String, List<String>> getResp() {
return resp;
}
}