public void InitMyCards(MyCardRes res) { UserCardList = new List <UserCardVo>(); for (int i = 0; i < res.UserCards.Count; i++) { UserCardVo vo = ParseUserCardVo(res.UserCards[i]); // Debug.LogError(vo.CardId+":"+vo.RecollectionCount); UserCardList.Add(vo); } UserCardList.Sort(); }
private void OnCardRefresh(MyCardRes res) { GlobalData.CardModel.InitMyCards(res); if (View.UserCardVo != null) { UserCardVo vo = GlobalData.CardModel.GetUserCardById(View.UserCardVo.CardId); View.SelectedCard(vo); } else if (_model.JumpData != null) { UserCardVo vo = GlobalData.CardModel.GetUserCardById((int)_model.JumpData.PostData); View.SelectedCard(vo); } }
private void OnGetMyCard(MyCardRes res) { GlobalData.CardModel.InitMyCards(res); }
private void OnGetCardList(MyCardRes res) { GlobalData.CardModel.InitMyCards(res); View.SetMyCardData(GlobalData.CardModel.UserCardList); }