【光环助手V5.5.0】游戏单详情-玩家评论 https://git.ghzs.com/pm/halo-app-issues/-/issues/1602,
【光环助手V5.5.0】游戏单详情-顶部区域/游戏列表(对接视频数据) https://git.ghzs.com/pm/halo-app-issues/-/issues/1601
This commit is contained in:
@ -284,6 +284,29 @@ public class PostCommentUtils {
|
||||
});
|
||||
}
|
||||
|
||||
public static void reportGameCollectionComment(final Context context,
|
||||
final String gameCollectionId,
|
||||
final String commentId,
|
||||
final String reportData,
|
||||
final PostCommentListener listener) {
|
||||
RequestBody body = RequestBody.create(MediaType.parse("application/json"), reportData);
|
||||
RetrofitManager.getInstance(context).getApi()
|
||||
.reportGameCollectionComment(gameCollectionId, commentId, body)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Response<ResponseBody>() {
|
||||
@Override
|
||||
public void onResponse(ResponseBody response) {
|
||||
listener.postSuccess(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailure(HttpException e) {
|
||||
listener.postFailed(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public interface PostCommentListener {
|
||||
void postSuccess(JSONObject response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user