update 排位赛中英文IM消息
This commit is contained in:
parent
3595b89672
commit
9ff382e35b
@ -23,6 +23,8 @@ public class PkRankBean extends BaseModel {
|
||||
public String clickUrl;
|
||||
@SerializedName("vs_img")
|
||||
public String vsImgUrl;
|
||||
@SerializedName("new_rank_name_en")
|
||||
public String newRankNameEn;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
@ -94,6 +96,14 @@ public class PkRankBean extends BaseModel {
|
||||
this.vsImgUrl = vsImgUrl;
|
||||
}
|
||||
|
||||
public String getNewRankNameEn() {
|
||||
return newRankNameEn;
|
||||
}
|
||||
|
||||
public void setNewRankNameEn(String newRankNameEn) {
|
||||
this.newRankNameEn = newRankNameEn;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PkRankBean{" +
|
||||
@ -105,6 +115,7 @@ public class PkRankBean extends BaseModel {
|
||||
", pkTopImgUrl='" + pkTopImgUrl + '\'' +
|
||||
", clickUrl='" + clickUrl + '\'' +
|
||||
", vsImgUrl='" + vsImgUrl + '\'' +
|
||||
", newRankNameEn='" + newRankNameEn + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -650,6 +650,7 @@ public class SocketRyClient {
|
||||
pkRankBean.setId(Integer.parseInt(item.getString("new_rank_id")));
|
||||
pkRankBean.setName(item.getString("new_rank_name"));
|
||||
pkRankBean.setImg(item.getString("new_rank_img"));
|
||||
pkRankBean.setNewRankNameEn(item.getString("new_rank_name_en"));
|
||||
EventBus.getDefault().post(new LiveAudienceEvent()
|
||||
.setType(LiveAudienceEvent.LiveAudienceType.PK_RANK_UPDATE)
|
||||
.setObject(pkRankBean));
|
||||
|
@ -124,6 +124,7 @@ import com.yunbao.common.utils.SpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.TimeUtils;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.utils.formatBigNum;
|
||||
import com.yunbao.common.views.AbsViewHolder;
|
||||
import com.yunbao.common.views.weight.ClipPathCircleImage;
|
||||
@ -461,7 +462,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
} else if ("checkNewLetter".equals(str)) {
|
||||
checkNewLetter();
|
||||
}else if("exitFansGroup".equals(str)){
|
||||
} else if ("exitFansGroup".equals(str)) {
|
||||
setFansGroup("0");
|
||||
}
|
||||
}
|
||||
@ -1817,7 +1818,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
.append("&isZh=")
|
||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||
}
|
||||
if (htmlUrl.toString().contains("StarChallenge")){
|
||||
if (htmlUrl.toString().contains("StarChallenge")) {
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", htmlUrl.toString());
|
||||
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
||||
@ -1889,7 +1890,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
.append("&isZh=")
|
||||
.append(((IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) ? "1" : "0"));
|
||||
}
|
||||
if (htmlUrl.toString().contains("StarChallenge")){
|
||||
if (htmlUrl.toString().contains("StarChallenge")) {
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", htmlUrl.toString());
|
||||
MobclickAgent.onEvent(mContext, "live_room_star", map_ekv);
|
||||
@ -2391,7 +2392,11 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
}
|
||||
|
||||
private void updatePkRank(PkRankBean bean) {
|
||||
mPkRankText.setText(bean.getName());
|
||||
if (WordUtil.isNewZh()) {
|
||||
mPkRankText.setText(bean.getName());
|
||||
} else {
|
||||
mPkRankText.setText(bean.getNewRankNameEn());
|
||||
}
|
||||
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
||||
}
|
||||
|
||||
@ -4159,7 +4164,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
|
||||
@Override
|
||||
public void onBannerClick(List datas, int p) {
|
||||
if (TextUtils.equals("特惠首冲", mBannerList4.get(p).getName())){
|
||||
if (TextUtils.equals("特惠首冲", mBannerList4.get(p).getName())) {
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
map_ekv.put("link", mBannerList4.get(p).getLink());
|
||||
|
Loading…
Reference in New Issue
Block a user