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