Пример #1
0
        private static void SelectChatGroup(string command)
        {
            int count = GetCount(command);

            if (count < 1)
            {
                return;
            }
            var chatGroupKeyValue = chatServiceRepository.GetChatGroup()[count - 1];

            ReceiverType = Core.Entities.ReceiverType.group;
            ReceiveId    = chatGroupKeyValue.Key;
            Console.WriteLine($"选择了聊天对象【{chatGroupKeyValue.Value}】");
        }
Пример #2
0
        private static void SelectUser(string command)
        {
            int count = GetCount(command);

            if (count < 1)
            {
                return;
            }
            var userKeyValue = chatServiceRepository.GetUsers()[count - 1];

            ReceiverType = Core.Entities.ReceiverType.individual;
            ReceiveId    = userKeyValue.Key;
            Console.WriteLine($"选择了聊天对象【{userKeyValue.Value}】");
        }