示例#1
0
        public static async Task PrintChatsAsync()
        {
            IEnumerable <ChatInfoDto> chats = await CHAT_CLIENT.GetChats();

            if (chats.Count() == 0)
            {
                Console.WriteLine("\n-----NO CHATS YET-----\n");
            }
            else
            {
                foreach (ChatInfoDto chat in chats)
                {
                    Console.WriteLine(chat.Name);
                }
            }
        }