基本处理完成recyclerview adapter

This commit is contained in:
CsHeng
2017-04-25 13:16:16 +08:00
parent 9ef8f5d1f2
commit 2725a59826
71 changed files with 2083 additions and 3009 deletions

View File

@ -47,7 +47,7 @@ public class PostCommentUtils {
public void onResponse(JSONObject response) {
if (response.length() != 0) {
if (listener != null){
listener.postSucced(response);
listener.postSuccess(response);
}
} else {
Utils.toast(context, "提交失败,请检查网络设置");
@ -88,7 +88,7 @@ public class PostCommentUtils {
@Override
public void onResponse(ResponseBody response) {
if (listener != null) {
listener.postSucced(null);
listener.postSuccess(null);
}
}
@ -120,7 +120,7 @@ public class PostCommentUtils {
.subscribe(new Response<ResponseBody>() {
@Override
public void onResponse(ResponseBody response) {
listener.postSucced(null);
listener.postSuccess(null);
}
@Override
@ -135,7 +135,7 @@ public class PostCommentUtils {
}
public interface PostCommentListener {
void postSucced(JSONObject response);
void postSuccess(JSONObject response);
void postFailed(Throwable error);
}