Пример #1
0
    public void InitUserMallInfo(MallInfoRes res)
    {
        UserBuyMallInfoPb = res.UserBuyMallInfo;
//            Debug.LogError(DateUtil.GetDataTime(UserBuyMallInfoPb.RefreshTime));

        if (UserBuyGameMallList == null)
        {
            UserBuyGameMallList = new List <UserBuyGameMallVo>();
        }
        UserBuyGameMallList.Clear();
        foreach (var v in res.UserBuyGameMall)
        {
//                Debug.LogError(v);
            var buygamemallItem = new UserBuyGameMallVo(v);
            UserBuyGameMallList.Add(buygamemallItem);
        }

//            Debug.LogError(UserBuyGameMallList.Count);

        if (UserBuyRmbMallList == null)
        {
            UserBuyRmbMallList = new List <UserBuyRmbMallVo>();
        }
        UserBuyRmbMallList.Clear();
        foreach (var v in res.UserBuyRmbMall)
        {
            var buyrmbmallItem = new UserBuyRmbMallVo(v);
            UserBuyRmbMallList.Add(buyrmbmallItem);
        }
    }
Пример #2
0
 private void MallInfoCallBack(MallInfoRes res)
 {
     LoadingOverlay.Instance.Hide();
     _shopModel.InitUserMallInfo(res);
     View.SetData(_shopModel);
 }