Example #1
0
        public static Dictionary <string, List <ChatMessageNew> > Get_Friend_Chat_DataX(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            return(chatDataList.FriendChatData);
        }
Example #2
0
        public static void Set_RemoveVipChatView(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            chatDataList.vipHallData.RemoveAt(0);
        }
Example #3
0
        public static Queue <ChatMessageNew> Get_Hall_Chat_DataX(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            return(chatDataList.HallChatData);
        }
Example #4
0
        public static void Set_Last_ChatSent_Time(this ModelManager mmng, DateTime now)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            chatDataList.chatUserInfoData.chatCheckTime = now.Ticks;
        }
Example #5
0
        public static void Set_Lobby_Chat_Clear(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            chatDataList.LobbyChatData.Clear();
        }
Example #6
0
        public static ChatDataList GetChatDataList(this ModelManager mmng)
        {
            ChatDataList result = null;

            if (mmng != null && mmng.ValidData(EModelType.Model_HomeChat))
            {
                result = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            return(result);
        }
Example #7
0
        public static void Set_ReSetTempHallChatView(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            chatDataList.tempHallData = new Queue <ChatMessageNew>();
            chatDataList.vipHallData  = new List <ChatMessageNew>();
        }
Example #8
0
        public static List <ChatMessageNew> Get_Hall_Chat_VIP_DataX(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            List <ChatMessageNew> list = new List <ChatMessageNew>();

            return(chatDataList.vipHallData);
        }
Example #9
0
        public static List <ChatMessageNew> Get_Hall_Chat_NonSelf_DataX(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            List <ChatMessageNew> list = new List <ChatMessageNew>();

            return(chatDataList.HallChatData.ToList <ChatMessageNew>().FindAll((ChatMessageNew obj) => obj.Client.UserId != long.Parse(ModelManager.Instance.Get_userData_X().UserId)));
        }
Example #10
0
        public static DateTime Get_Last_ChatSent_Time(this ModelManager mmng)
        {
            ChatDataList chatDataList = mmng.GetChatDataList();

            if (chatDataList == null)
            {
                chatDataList = mmng.GetData <ChatDataList>(EModelType.Model_HomeChat);
            }
            DateTime result = new DateTime(chatDataList.chatUserInfoData.chatCheckTime);

            return(result);
        }