本文整理汇总了Java中com.justwayward.reader.bean.BookHelp类的典型用法代码示例。如果您正苦于以下问题:Java BookHelp类的具体用法?Java BookHelp怎么用?Java BookHelp使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BookHelp类属于com.justwayward.reader.bean包,在下文中一共展示了BookHelp类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBookHelpDetail
import com.justwayward.reader.bean.BookHelp; //导入依赖的package包/类
@Override
public void getBookHelpDetail(String id) {
Subscription rxSubscription = bookApi.getBookHelpDetail(id).subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Observer<BookHelp>() {
@Override
public void onCompleted() {
}
@Override
public void onError(Throwable e) {
LogUtils.e("getBookHelpDetail:" + e.toString());
}
@Override
public void onNext(BookHelp bookHelp) {
mView.showBookHelpDetail(bookHelp);
}
});
addSubscrebe(rxSubscription);
}
示例2: showBookHelpDetail
import com.justwayward.reader.bean.BookHelp; //导入依赖的package包/类
@Override
public void showBookHelpDetail(BookHelp data) {
Glide.with(mContext).load(Constant.IMG_BASE_URL + data.help.author.avatar)
.placeholder(R.drawable.avatar_default)
.transform(new GlideCircleTransform(mContext))
.into(headerViewHolder.ivAvatar);
headerViewHolder.tvNickName.setText(data.help.author.nickname);
headerViewHolder.tvTime.setText(FormatUtils.getDescriptionTimeFromDateString(data.help.created));
headerViewHolder.tvTitle.setText(data.help.title);
headerViewHolder.tvContent.setText(data.help.content);
headerViewHolder.tvCommentCount.setText(String.format(mContext.getString(R.string.comment_comment_count), data.help.commentCount));
}
示例3: getBookHelpDetail
import com.justwayward.reader.bean.BookHelp; //导入依赖的package包/类
public Observable<BookHelp> getBookHelpDetail(String helpId) {
return service.getBookHelpDetail(helpId);
}
示例4: getBookHelpDetail
import com.justwayward.reader.bean.BookHelp; //导入依赖的package包/类
/**
* 获取书荒区帖子详情
*
* @param helpId->_id
* @return
*/
@GET("/post/help/{helpId}")
Observable<BookHelp> getBookHelpDetail(@Path("helpId") String helpId);
示例5: showBookHelpDetail
import com.justwayward.reader.bean.BookHelp; //导入依赖的package包/类
void showBookHelpDetail(BookHelp data);