protected void Button1_Click(object sender, EventArgs e) { Label1.Text = ""; OperatorWS ws = new OperatorWS(); List<SystemAdvertise> li = ws.GetSystemAdvertise(this.TextBox1.Text); foreach (SystemAdvertise item in li) { Label1.Text += item.AdvertiseMessage+"</BR>"; } }
protected void Button1_Click(object sender, EventArgs e) { Label1.Text = ""; OperatorWS ws = new OperatorWS(); List <SystemAdvertise> li = ws.GetSystemAdvertise(this.TextBox1.Text); foreach (SystemAdvertise item in li) { Label1.Text += item.AdvertiseMessage + "</BR>"; } }
public static string SetTypingNotification(string chatId, string msg) { OperatorWS ws = new OperatorWS(); AuthenticationHeader auth = new AuthenticationHeader(); //auth.userName = ConfigurationManager.AppSettings["WSUser"].ToString(); //ws.Authentication = auth; //ws.SetTyping(chatId, false, msg.Length > 0); return(string.Empty); }
public static string CheckTypingNotification(string chatId) { if (!string.IsNullOrEmpty(chatId)) { OperatorWS ws = new OperatorWS(); AuthenticationHeader auth = new AuthenticationHeader(); if (ws.IsTyping(chatId, true)) { return("客服正在输入... "); } else // no one typing... { return(""); } } else { return(string.Empty); } }
public static string SetTypingNotification(string chatId, string msg) { OperatorWS ws = new OperatorWS(); AuthenticationHeader auth = new AuthenticationHeader(); //auth.userName = ConfigurationManager.AppSettings["WSUser"].ToString(); //ws.Authentication = auth; //ws.SetTyping(chatId, false, msg.Length > 0); return string.Empty; }
public static string CheckTypingNotification(string chatId) { if (!string.IsNullOrEmpty(chatId)) { OperatorWS ws = new OperatorWS(); AuthenticationHeader auth = new AuthenticationHeader(); if (ws.IsTyping(chatId, true)) return "�ͷ���������... "; else // no one typing... return ""; } else return string.Empty; }