修改测试问题,shouye ytuijian
This commit is contained in:
parent
2279823780
commit
743f06115d
@ -34,9 +34,9 @@ public class AnchorRecommendItemModel extends BaseModel {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@SerializedName("islive")
|
@SerializedName("islive")
|
||||||
private long islive = 0;
|
private String islive ="";
|
||||||
@SerializedName("uid")
|
@SerializedName("uid")
|
||||||
private long uid = 0;
|
private String uid ="";
|
||||||
@SerializedName("title")
|
@SerializedName("title")
|
||||||
private String title = "";
|
private String title = "";
|
||||||
@SerializedName("stream")
|
@SerializedName("stream")
|
||||||
@ -46,21 +46,21 @@ public class AnchorRecommendItemModel extends BaseModel {
|
|||||||
@SerializedName("thumb")
|
@SerializedName("thumb")
|
||||||
private String thumb = "";
|
private String thumb = "";
|
||||||
@SerializedName("isvideo")
|
@SerializedName("isvideo")
|
||||||
private long isvideo = 0;
|
private String isvideo ="";
|
||||||
@SerializedName("type")
|
@SerializedName("type")
|
||||||
private int type = 0;
|
private String type ="";
|
||||||
@SerializedName("type_val")
|
@SerializedName("type_val")
|
||||||
private String typeVal = "";
|
private String typeVal = "";
|
||||||
@SerializedName("anyway")
|
@SerializedName("anyway")
|
||||||
private long anyway = 0;
|
private String anyway ="";
|
||||||
@SerializedName("landscape")
|
@SerializedName("landscape")
|
||||||
private long landscape = 0;
|
private String landscape ="";
|
||||||
@SerializedName("liveclassid")
|
@SerializedName("liveclassid")
|
||||||
private long liveclassid = 0;
|
private String liveclassid ="";
|
||||||
@SerializedName("is_rong")
|
@SerializedName("is_rong")
|
||||||
private long isRong = 0;
|
private String isRong ="";
|
||||||
@SerializedName("hot_num")
|
@SerializedName("hot_num")
|
||||||
private long hotNum = 0;
|
private String hotNum ="";
|
||||||
@SerializedName("content_pic_size_one")
|
@SerializedName("content_pic_size_one")
|
||||||
private String contentPicSizeOne = "";
|
private String contentPicSizeOne = "";
|
||||||
@SerializedName("content_pic_size_two")
|
@SerializedName("content_pic_size_two")
|
||||||
@ -106,20 +106,20 @@ public class AnchorRecommendItemModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getIslive() {
|
public String getIslive() {
|
||||||
return islive;
|
return islive;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setIslive(long islive) {
|
public AnchorRecommendItemModel setIslive(String islive) {
|
||||||
this.islive = islive;
|
this.islive = islive;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getUid() {
|
public String getUid() {
|
||||||
return uid;
|
return uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setUid(long uid) {
|
public AnchorRecommendItemModel setUid(String uid) {
|
||||||
this.uid = uid;
|
this.uid = uid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -160,20 +160,20 @@ public class AnchorRecommendItemModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getIsvideo() {
|
public String getIsvideo() {
|
||||||
return isvideo;
|
return isvideo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setIsvideo(long isvideo) {
|
public AnchorRecommendItemModel setIsvideo(String isvideo) {
|
||||||
this.isvideo = isvideo;
|
this.isvideo = isvideo;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setType(int type) {
|
public AnchorRecommendItemModel setType(String type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -187,47 +187,47 @@ public class AnchorRecommendItemModel extends BaseModel {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getAnyway() {
|
public String getAnyway() {
|
||||||
return anyway;
|
return anyway;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setAnyway(long anyway) {
|
public AnchorRecommendItemModel setAnyway(String anyway) {
|
||||||
this.anyway = anyway;
|
this.anyway = anyway;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getLandscape() {
|
public String getLandscape() {
|
||||||
return landscape;
|
return landscape;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setLandscape(long landscape) {
|
public AnchorRecommendItemModel setLandscape(String landscape) {
|
||||||
this.landscape = landscape;
|
this.landscape = landscape;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getLiveclassid() {
|
public String getLiveclassid() {
|
||||||
return liveclassid;
|
return liveclassid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setLiveclassid(long liveclassid) {
|
public AnchorRecommendItemModel setLiveclassid(String liveclassid) {
|
||||||
this.liveclassid = liveclassid;
|
this.liveclassid = liveclassid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getIsRong() {
|
public String getIsRong() {
|
||||||
return isRong;
|
return isRong;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setIsRong(long isRong) {
|
public AnchorRecommendItemModel setIsRong(String isRong) {
|
||||||
this.isRong = isRong;
|
this.isRong = isRong;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getHotNum() {
|
public String getHotNum() {
|
||||||
return hotNum;
|
return hotNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AnchorRecommendItemModel setHotNum(long hotNum) {
|
public AnchorRecommendItemModel setHotNum(String hotNum) {
|
||||||
this.hotNum = hotNum;
|
this.hotNum = hotNum;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ public class SearchRecommendBodyItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
SearchModel searchModel = new SearchModel();
|
SearchModel searchModel = new SearchModel();
|
||||||
searchModel.setId(model.getUid());
|
searchModel.setId(Long.parseLong(model.getUid()));
|
||||||
Bus.get().post(new JumpUserHomeEvent(searchModel));
|
Bus.get().post(new JumpUserHomeEvent(searchModel));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -15,6 +15,7 @@ import com.yunbao.common.fragment.BaseFragment;
|
|||||||
import com.yunbao.common.http.base.HttpCallback;
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
import com.yunbao.common.http.main.MainNetManager;
|
import com.yunbao.common.http.main.MainNetManager;
|
||||||
import com.yunbao.common.manager.SearchHistoryRecordManager;
|
import com.yunbao.common.manager.SearchHistoryRecordManager;
|
||||||
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
import com.yunbao.main.adapter.SearchRecommendAdapter;
|
import com.yunbao.main.adapter.SearchRecommendAdapter;
|
||||||
|
|
||||||
@ -84,6 +85,8 @@ public class SearchRecommendFragment extends BaseFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(String error) {
|
public void onError(String error) {
|
||||||
|
ToastUtil.show(error);
|
||||||
|
loadData();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -87,10 +87,10 @@ public class SearchRecommendBodyItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
mNum.setText(formatBigNum.formatBigNum(String.valueOf(model.getHotNum())));
|
mNum.setText(formatBigNum.formatBigNum(String.valueOf(model.getHotNum())));
|
||||||
views.setVisibility(View.GONE);
|
views.setVisibility(View.GONE);
|
||||||
if (model.getIslive() == 1) {
|
if (TextUtils.equals("1", model.getIslive())) {
|
||||||
views.setVisibility(View.VISIBLE);
|
views.setVisibility(View.VISIBLE);
|
||||||
//直播中
|
//直播中
|
||||||
mType.setImageResource(MainIconUtil.getLiveTypeIcon(model.getType()));
|
mType.setImageResource(MainIconUtil.getLiveTypeIcon(Integer.parseInt(model.getType())));
|
||||||
mType.setVisibility(View.VISIBLE);
|
mType.setVisibility(View.VISIBLE);
|
||||||
mLiveIco.setImageResource(R.mipmap.icon_main_rest_work);
|
mLiveIco.setImageResource(R.mipmap.icon_main_rest_work);
|
||||||
mNum.setVisibility(View.VISIBLE);
|
mNum.setVisibility(View.VISIBLE);
|
||||||
@ -110,7 +110,7 @@ public class SearchRecommendBodyItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
SearchModel searchModel = new SearchModel();
|
SearchModel searchModel = new SearchModel();
|
||||||
searchModel.setId(model.getUid());
|
searchModel.setId(Long.parseLong(model.getUid()));
|
||||||
Bus.get().post(new JumpUserHomeEvent(searchModel));
|
Bus.get().post(new JumpUserHomeEvent(searchModel));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user