private void GetMainInfo(UserFriendsRes res) { LoadingOverlay.Instance.Hide(); _friendModel = GetData <FriendModel>(); _friendModel.Init(res); GetApplyRes(); FriendsMainView.SetData(_friendModel); }
public void Init(UserFriendsRes res) { DailyPower = res.DailyPower; if (FriendMainInfoList == null) { FriendMainInfoList = new List <FriendInfo>(); } foreach (var v in res.UserFriends) { var friendInfo = new FriendInfo(v); FriendMainInfoList.Add(friendInfo); } }