use of org.mazhuang.guanggoo.data.task.CommentTask in project guanggoo-android by mzlogin.
the class TopicDetailPresenter method comment.
@Override
public void comment(String content) {
mView.startLoading();
content = EmojiParser.parseToAliases(content);
NetworkTaskScheduler.getInstance().execute(new CommentTask(getUrl(), content, new OnResponseListener<String>() {
@Override
public void onSucceed(String data) {
mView.stopLoading();
mView.onCommentSucceed();
}
@Override
public void onFailed(String msg) {
mView.stopLoading();
mView.onCommentFailed(msg);
}
}));
}
Aggregations