示例#1
0
        static void GetMessage(bool IsNextMsg = false)
        {
            if (ucwaAuthenticationResult == null)
            {
                Console.WriteLine("You haven't logged in yet!");
                return;
            }

            UcwaReciveMessage.GetMessage(httpClient, ucwaAuthenticationResult, IsNextMsg);//, "", message);
        }
        static void GetMessage(TelemetryClient tc, bool IsNextMsg = false)
        {
            if (ConfigData.authToken == null)
            {
                Console.WriteLine("You haven't logged in yet!");
                tc.TrackTrace("You haven't logged in yet!");
                return;
            }

            Console.WriteLine("Bot is listening to messages...");
            tc.TrackEvent("BotActive");
            UcwaReciveMessage.GetMessage(httpClient, tc, ConfigData.authToken, IsNextMsg);
        }