static ChatService()
 {
     var websiteUrl = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
     Agent = new ChatAgent
     {
         ServiceUrl = websiteUrl + "/ChatService.aspx",
         ResourceUrl = websiteUrl + "/Assistant",
         Name = "Maya",
         Title = "Syn Web Assistant",
         Intro = "Hi I am Maya, I am here to help you with your questions.",
         InputText = "What can I help you with?",
         Footer = "Syn",
         FooterLink = "http://www.syn.co.in",
         RestartId = "restart",
         PackageFileName = "Package.txt"
     };
 }
Exemplo n.º 2
0
        static ChatService()
        {
            //Change the "rootUrl" variable to your Website's domain name
            var rootUrl = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);

            Agent = new ChatAgent
            {
                ServiceUrl      = rootUrl + "/ChatService.aspx",
                ResourceUrl     = rootUrl + "/Assistant",
                Name            = "Book-bot",
                Title           = "Live Chat",
                Intro           = "Hi, I am Book-bot, I am here to help assist and answer any questions in regards to your bookings.",
                InputText       = "What can I help you with?",
                Footer          = "Auto Care",
                FooterLink      = rootUrl,
                RestartId       = "restart",
                PackageFileName = "Package.txt"
            };
        }
Exemplo n.º 3
0
        void Login(object parameter)
        {
            var loginForm = (LoginForm)parameter;

            //mvvm and security violation
            var secureString = loginForm.Password;

            Password = ConvertToUnsecureString(secureString);


            ChatAgent chatAgent = new ChatAgent(Username, Password, URL);

            ChatView chatView = new ChatView()
            {
                DataContext = new ChatVM(chatAgent)
            };

            chatView.Show();

            loginForm.Hide();
        }