|
|
@@ -1,11 +1,16 @@
|
|
|
package com.sheep.gamegroup.module.game.model;
|
|
|
|
|
|
+import com.kfzs.duanduan.utils.NumberFormatUtils;
|
|
|
import com.sheep.gamegroup.model.entity.Applications;
|
|
|
import com.sheep.gamegroup.module.game.api.IGameGroup;
|
|
|
import com.sheep.gamegroup.util.ListUtil;
|
|
|
+import com.sheep.gamegroup.util.string.SpannableSb;
|
|
|
+import com.sheep.jiuyan.samllsheep.R;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
+import rx.functions.Action1;
|
|
|
+
|
|
|
/**
|
|
|
* Created by realicing on 2019/1/18.
|
|
|
* realicing@sina.com
|
|
|
@@ -43,12 +48,22 @@ public class GameGroup implements IGameGroup {
|
|
|
|
|
|
private int game_discount_id;
|
|
|
|
|
|
+ private int online_num;
|
|
|
+
|
|
|
private String updated_at;
|
|
|
|
|
|
public String getName() {
|
|
|
return Name;
|
|
|
}
|
|
|
|
|
|
+ public int getOnline_num() {
|
|
|
+ return online_num;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOnline_num(int online_num) {
|
|
|
+ this.online_num = online_num;
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public String getPackageSizeMsg() {
|
|
|
return package_size + "M";
|
|
|
@@ -163,4 +178,13 @@ public class GameGroup implements IGameGroup {
|
|
|
return app.getId();
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+ public CharSequence getInfo(Action1<SpannableSb> action1) {
|
|
|
+ return new SpannableSb("#999999", R.dimen.text_size_12)
|
|
|
+ .callAction(action1)
|
|
|
+ .append(package_size+"M").defaultTcTs()
|
|
|
+ .kgz().append(NumberFormatUtils.retainMost2W(online_num), "#2EBEF2").defaultTextSize()
|
|
|
+ .append("人在玩").defaultTcTs()
|
|
|
+ .getSsb();
|
|
|
+ }
|
|
|
}
|