本文整理匯總了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);