|
|
@@ -0,0 +1,339 @@
|
|
|
+package com.netease.nim.uikit;
|
|
|
+
|
|
|
+import com.google.gson.Gson;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by KN on 2017/7/25.
|
|
|
+ */
|
|
|
+
|
|
|
+public class UIKitCache {
|
|
|
+ private static AccountBean account;
|
|
|
+ private static GiftBean gifts;
|
|
|
+ private static String selectedGiftId;
|
|
|
+
|
|
|
+ public static void setAccount(String account){
|
|
|
+ UIKitCache.account = new Gson().fromJson(account,AccountBean.class);
|
|
|
+ }
|
|
|
+ public static void setGifts(String gifts) {
|
|
|
+ UIKitCache.gifts = new Gson().fromJson(gifts,GiftBean.class);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void setSelectedGiftId(String selectedGiftId) {
|
|
|
+ UIKitCache.selectedGiftId = selectedGiftId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static AccountBean getAccount() {
|
|
|
+ return account;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static GiftBean getGifts() {
|
|
|
+ return gifts;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static String getSelectedGiftId() {
|
|
|
+ return selectedGiftId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public class GiftBean {
|
|
|
+ private List<ListBean> list;
|
|
|
+
|
|
|
+ public List<ListBean> getList() {
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setList(List<ListBean> list) {
|
|
|
+ this.list = list;
|
|
|
+ }
|
|
|
+
|
|
|
+ public class ListBean {
|
|
|
+ /**
|
|
|
+ * id : 10
|
|
|
+ * name : 么么哒
|
|
|
+ * price : 10
|
|
|
+ * listorder : 0
|
|
|
+ * icon : http://whosay.dashgame.com/uploadfile/2017/0703/20170703035936326.jpg
|
|
|
+ * movie : http://whosay.dashgame.com/uploadfile/2017/0703/20170703040241238.gif
|
|
|
+ * inputtime : 1499068964
|
|
|
+ */
|
|
|
+
|
|
|
+ private String id;
|
|
|
+ private String name;
|
|
|
+ private String price;
|
|
|
+ private String listorder;
|
|
|
+ private String icon;
|
|
|
+ private String movie;
|
|
|
+ private String inputtime;
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPrice() {
|
|
|
+ return price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPrice(String price) {
|
|
|
+ this.price = price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getListorder() {
|
|
|
+ return listorder;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setListorder(String listorder) {
|
|
|
+ this.listorder = listorder;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getIcon() {
|
|
|
+ return icon;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setIcon(String icon) {
|
|
|
+ this.icon = icon;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMovie() {
|
|
|
+ return movie;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMovie(String movie) {
|
|
|
+ this.movie = movie;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getInputtime() {
|
|
|
+ return inputtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInputtime(String inputtime) {
|
|
|
+ this.inputtime = inputtime;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class AccountBean {
|
|
|
+ /**
|
|
|
+ * id : 200016
|
|
|
+ * nick :
|
|
|
+ * coin : 0
|
|
|
+ * latitude : 0
|
|
|
+ * longitude : 0
|
|
|
+ * province :
|
|
|
+ * city :
|
|
|
+ * district :
|
|
|
+ * mobile : 18523545395
|
|
|
+ * token : e10adc3949ba59abbe56e057f20f883e
|
|
|
+ * country_room_id : 54519240
|
|
|
+ * province_room_id :
|
|
|
+ * city_room_id :
|
|
|
+ * district_room_id :
|
|
|
+ * trade_priority : [{"id":"1","name":"国家道具","type":"0","price":"10","inputtime":"2017-07-12 17:30:42"},{"id":"2","name":"省道具","type":"1","price":"8","inputtime":"2017-07-12 17:30:59"},{"id":"3","name":"市道具","type":"2","price":"6","inputtime":"2017-07-12 17:31:11"},{"id":"4","name":"区县道具","type":"3","price":"4","inputtime":"2017-07-12 17:31:23"}]
|
|
|
+ */
|
|
|
+
|
|
|
+ private String id;
|
|
|
+ private String nick;
|
|
|
+ private String coin;
|
|
|
+ private String latitude;
|
|
|
+ private String longitude;
|
|
|
+ private String province;
|
|
|
+ private String city;
|
|
|
+ private String district;
|
|
|
+ private String mobile;
|
|
|
+ private String token;
|
|
|
+ private String country_room_id;
|
|
|
+ private String province_room_id;
|
|
|
+ private String city_room_id;
|
|
|
+ private String district_room_id;
|
|
|
+ private List<TradePriorityBean> trade_priority;
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getNick() {
|
|
|
+ return nick;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNick(String nick) {
|
|
|
+ this.nick = nick;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCoin() {
|
|
|
+ return coin;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCoin(String coin) {
|
|
|
+ this.coin = coin;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getLatitude() {
|
|
|
+ return latitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLatitude(String latitude) {
|
|
|
+ this.latitude = latitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getLongitude() {
|
|
|
+ return longitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLongitude(String longitude) {
|
|
|
+ this.longitude = longitude;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProvince() {
|
|
|
+ return province;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProvince(String province) {
|
|
|
+ this.province = province;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCity() {
|
|
|
+ return city;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCity(String city) {
|
|
|
+ this.city = city;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDistrict() {
|
|
|
+ return district;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDistrict(String district) {
|
|
|
+ this.district = district;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMobile() {
|
|
|
+ return mobile;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMobile(String mobile) {
|
|
|
+ this.mobile = mobile;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getToken() {
|
|
|
+ return token;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setToken(String token) {
|
|
|
+ this.token = token;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCountry_room_id() {
|
|
|
+ return country_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCountry_room_id(String country_room_id) {
|
|
|
+ this.country_room_id = country_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProvince_room_id() {
|
|
|
+ return province_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProvince_room_id(String province_room_id) {
|
|
|
+ this.province_room_id = province_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCity_room_id() {
|
|
|
+ return city_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCity_room_id(String city_room_id) {
|
|
|
+ this.city_room_id = city_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDistrict_room_id() {
|
|
|
+ return district_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDistrict_room_id(String district_room_id) {
|
|
|
+ this.district_room_id = district_room_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<TradePriorityBean> getTrade_priority() {
|
|
|
+ return trade_priority;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTrade_priority(List<TradePriorityBean> trade_priority) {
|
|
|
+ this.trade_priority = trade_priority;
|
|
|
+ }
|
|
|
+
|
|
|
+ public class TradePriorityBean {
|
|
|
+ /**
|
|
|
+ * id : 1
|
|
|
+ * name : 国家道具
|
|
|
+ * type : 0
|
|
|
+ * price : 10
|
|
|
+ * inputtime : 2017-07-12 17:30:42
|
|
|
+ */
|
|
|
+
|
|
|
+ private String id;
|
|
|
+ private String name;
|
|
|
+ private String type;
|
|
|
+ private String price;
|
|
|
+ private String inputtime;
|
|
|
+
|
|
|
+ public String getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(String id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getType() {
|
|
|
+ return type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setType(String type) {
|
|
|
+ this.type = type;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPrice() {
|
|
|
+ return price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPrice(String price) {
|
|
|
+ this.price = price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getInputtime() {
|
|
|
+ return inputtime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setInputtime(String inputtime) {
|
|
|
+ this.inputtime = inputtime;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|