public void Add(MultiInvitationSendWindow.Content.ItemSource.ItemParam param)
 {
     if (!param.IsValid())
     {
         return;
     }
     this.m_Params.Add(param);
 }
        private void RefreshUI()
        {
            if (this.m_ContentSource == null)
            {
                return;
            }
            int count = this.m_ContentSource.GetCount();

            if (this.m_SendList.Count >= 5)
            {
                for (int index = 0; index < count; ++index)
                {
                    // ISSUE: object of a compiler-generated type is created
                    // ISSUE: variable of a compiler-generated type
                    MultiInvitationSendWindow.\u003CRefreshUI\u003Ec__AnonStorey349 uiCAnonStorey349 = new MultiInvitationSendWindow.\u003CRefreshUI\u003Ec__AnonStorey349();
                    // ISSUE: reference to a compiler-generated field
                    uiCAnonStorey349.param = this.m_ContentSource.GetParam(index) as MultiInvitationSendWindow.Content.ItemSource.ItemParam;
                    // ISSUE: reference to a compiler-generated field
                    // ISSUE: reference to a compiler-generated field
                    if (uiCAnonStorey349.param != null && uiCAnonStorey349.param.IsValid())
                    {
                        // ISSUE: reference to a compiler-generated method
                        if (this.m_SendList.FindIndex(new Predicate <string>(uiCAnonStorey349.\u003C\u003Em__3A9)) == -1)
                        {
                            // ISSUE: reference to a compiler-generated field
                            uiCAnonStorey349.param.accessor.SetHatch(false);
                        }
                        else
                        {
                            // ISSUE: reference to a compiler-generated field
                            uiCAnonStorey349.param.accessor.SetHatch(true);
                        }
                    }
                }
            }
            else
            {
                for (int index = 0; index < count; ++index)
                {
                    MultiInvitationSendWindow.Content.ItemSource.ItemParam itemParam = this.m_ContentSource.GetParam(index) as MultiInvitationSendWindow.Content.ItemSource.ItemParam;
                    if (itemParam != null && itemParam.IsValid())
                    {
                        itemParam.accessor.SetHatch(true);
                    }
                }
            }
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null))
            {
                return;
            }
            this.m_ValueList.list.SetField("checknum", this.m_SendList.Count);
            this.m_ValueList.list.SetInteractable("btn_invication", this.m_SendList.Count > 0);
        }
        private void RefreshUI()
        {
            if (this.m_ContentSource == null)
            {
                return;
            }
            int count = this.m_ContentSource.GetCount();

            if (this.m_SendList.Count >= 5)
            {
                for (int index = 0; index < count; ++index)
                {
                    MultiInvitationSendWindow.Content.ItemSource.ItemParam param = this.m_ContentSource.GetParam(index) as MultiInvitationSendWindow.Content.ItemSource.ItemParam;
                    if (param != null && param.IsValid())
                    {
                        if (this.m_SendList.FindIndex((Predicate <string>)(prop => prop == param.friend.UID)) == -1)
                        {
                            param.accessor.SetHatch(false);
                        }
                        else
                        {
                            param.accessor.SetHatch(true);
                        }
                    }
                }
            }
            else
            {
                for (int index = 0; index < count; ++index)
                {
                    MultiInvitationSendWindow.Content.ItemSource.ItemParam itemParam = this.m_ContentSource.GetParam(index) as MultiInvitationSendWindow.Content.ItemSource.ItemParam;
                    if (itemParam != null && itemParam.IsValid())
                    {
                        itemParam.accessor.SetHatch(true);
                    }
                }
            }
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null))
            {
                return;
            }
            this.m_ValueList.list.SetField("checknum", this.m_SendList.Count);
            this.m_ValueList.list.SetInteractable("btn_invication", this.m_SendList.Count > 0);
        }
        public void InitializeContentList()
        {
            this.ReleaseContentList();
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
            {
                return;
            }
            this.m_ContentSource = new MultiInvitationSendWindow.Content.ItemSource();
            List <FriendData> list     = new List <FriendData>((IEnumerable <FriendData>)MonoSingleton <GameManager> .Instance.Player.Friends);
            MyPhoton          instance = PunMonoSingleton <MyPhoton> .Instance;

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                List <MyPhoton.MyPlayer> roomPlayerList = instance.GetRoomPlayerList();
                for (int index1 = 0; index1 < roomPlayerList.Count; ++index1)
                {
                    if (roomPlayerList[index1] != null && !string.IsNullOrEmpty(roomPlayerList[index1].json))
                    {
                        // ISSUE: object of a compiler-generated type is created
                        // ISSUE: variable of a compiler-generated type
                        MultiInvitationSendWindow.\u003CInitializeContentList\u003Ec__AnonStorey34A listCAnonStorey34A = new MultiInvitationSendWindow.\u003CInitializeContentList\u003Ec__AnonStorey34A();
                        // ISSUE: reference to a compiler-generated field
                        listCAnonStorey34A.param = JSON_MyPhotonPlayerParam.Parse(roomPlayerList[index1].json);
                        // ISSUE: reference to a compiler-generated field
                        if (listCAnonStorey34A.param != null)
                        {
                            // ISSUE: reference to a compiler-generated method
                            int index2 = list.FindIndex(new Predicate <FriendData>(listCAnonStorey34A.\u003C\u003Em__3AA));
                            if (index2 != -1)
                            {
                                list.RemoveAt(index2);
                            }
                        }
                    }
                }
            }
            for (int index = 0; index < list.Count; ++index)
            {
                // ISSUE: object of a compiler-generated type is created
                // ISSUE: variable of a compiler-generated type
                MultiInvitationSendWindow.\u003CInitializeContentList\u003Ec__AnonStorey34B listCAnonStorey34B = new MultiInvitationSendWindow.\u003CInitializeContentList\u003Ec__AnonStorey34B();
                // ISSUE: reference to a compiler-generated field
                listCAnonStorey34B.data = list[index];
                bool flag = false;
                // ISSUE: reference to a compiler-generated field
                if (listCAnonStorey34B.data != null)
                {
                    // ISSUE: reference to a compiler-generated method
                    if (MultiInvitationSendWindow.m_Invited.FindIndex(new Predicate <string>(listCAnonStorey34B.\u003C\u003Em__3AB)) != -1)
                    {
                        flag = true;
                    }
                    else
                    {
                        // ISSUE: reference to a compiler-generated field
                        if (!listCAnonStorey34B.data.MultiPush)
                        {
                            flag = true;
                        }
                        else
                        {
                            // ISSUE: reference to a compiler-generated field
                            if (TimeManager.GetUnixSec(DateTime.Now) - listCAnonStorey34B.data.LastLogin > 86400L)
                            {
                                flag = true;
                            }
                        }
                    }
                }
                else
                {
                    flag = true;
                }
                if (flag)
                {
                    list.RemoveAt(index);
                    --index;
                }
            }
            SortUtility.StableSort <FriendData>(list, (Comparison <FriendData>)((p1, p2) => (!p1.IsFavorite ? p1.LastLogin : long.MaxValue).CompareTo(!p2.IsFavorite ? p2.LastLogin : long.MaxValue)));
            list.Reverse();
            for (int index = 0; index < list.Count; ++index)
            {
                FriendData friend = list[index];
                if (friend != null)
                {
                    MultiInvitationSendWindow.Content.ItemSource.ItemParam itemParam = new MultiInvitationSendWindow.Content.ItemSource.ItemParam(friend);
                    if (itemParam.IsValid())
                    {
                        this.m_ContentSource.Add(itemParam);
                    }
                }
            }
            this.m_ContentController.Initialize((ContentSource)this.m_ContentSource, Vector2.get_zero());
        }
        public void InitializeContentList()
        {
            this.ReleaseContentList();
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContentController, (UnityEngine.Object)null))
            {
                return;
            }
            this.m_ContentSource = new MultiInvitationSendWindow.Content.ItemSource();
            List <FriendData> list     = new List <FriendData>((IEnumerable <FriendData>)MonoSingleton <GameManager> .Instance.Player.Friends);
            MyPhoton          instance = PunMonoSingleton <MyPhoton> .Instance;

            if (UnityEngine.Object.op_Inequality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                List <MyPhoton.MyPlayer> roomPlayerList = instance.GetRoomPlayerList();
                for (int index1 = 0; index1 < roomPlayerList.Count; ++index1)
                {
                    if (roomPlayerList[index1] != null && !string.IsNullOrEmpty(roomPlayerList[index1].json))
                    {
                        JSON_MyPhotonPlayerParam param = JSON_MyPhotonPlayerParam.Parse(roomPlayerList[index1].json);
                        if (param != null)
                        {
                            int index2 = list.FindIndex((Predicate <FriendData>)(prop => prop.UID == param.UID));
                            if (index2 != -1)
                            {
                                list.RemoveAt(index2);
                            }
                        }
                    }
                }
            }
            for (int index = 0; index < list.Count; ++index)
            {
                FriendData data = list[index];
                bool       flag = false;
                if (data != null)
                {
                    if (MultiInvitationSendWindow.m_Invited.FindIndex((Predicate <string>)(prop => prop == data.UID)) != -1)
                    {
                        flag = true;
                    }
                    else if (!data.MultiPush)
                    {
                        flag = true;
                    }
                    else if (TimeManager.GetUnixSec(DateTime.Now) - data.LastLogin > 86400L)
                    {
                        flag = true;
                    }
                }
                else
                {
                    flag = true;
                }
                if (flag)
                {
                    list.RemoveAt(index);
                    --index;
                }
            }
            SortUtility.StableSort <FriendData>(list, (Comparison <FriendData>)((p1, p2) => (!p1.IsFavorite ? p1.LastLogin : long.MaxValue).CompareTo(!p2.IsFavorite ? p2.LastLogin : long.MaxValue)));
            list.Reverse();
            for (int index = 0; index < list.Count; ++index)
            {
                FriendData friend = list[index];
                if (friend != null)
                {
                    MultiInvitationSendWindow.Content.ItemSource.ItemParam itemParam = new MultiInvitationSendWindow.Content.ItemSource.ItemParam(friend);
                    if (itemParam.IsValid())
                    {
                        this.m_ContentSource.Add(itemParam);
                    }
                }
            }
            this.m_ContentController.Initialize((ContentSource)this.m_ContentSource, Vector2.get_zero());
        }