Search in sources :

Example 1 with CommentTask

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);
        }
    }));
}
Also used : OnResponseListener(org.mazhuang.guanggoo.data.OnResponseListener) CommentTask(org.mazhuang.guanggoo.data.task.CommentTask)

Aggregations

OnResponseListener (org.mazhuang.guanggoo.data.OnResponseListener)1 CommentTask (org.mazhuang.guanggoo.data.task.CommentTask)1