Exemplo n.º 1
0
        public TuitionPublishReply GetTutionPayment(string subject, string location)
        {
            string urlp = url
                          + "&CourseName=" + subject
                          + "&Location=" + location;

            string json = m_helper.CallRestService(urlp, "GET", null);


            return(new TuitionPublishReply(""));
        }
Exemplo n.º 2
0
        public WitReply SendChatBotMessage(DateTime now, string msg)
        {
            System.Threading.Thread.Sleep(100);

            var param = "";

            wit_url = wit_url + "&q=" + RestService.FormatTextForJSON(msg);


            WitReply reply;

            try
            {
                string value = m_helper.CallRestService(wit_url, "GET", param, headers);
                reply = new WitReply(value);
            }
            catch (Exception ex)
            {
                reply = new WitReply(ex);
            }

            return(reply);
        }