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>";
        }
    }
示例#2
0
    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>";
        }
    }
示例#3
0
    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);
    }
示例#4
0
    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);
        }
    }
示例#5
0
    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;
    }
示例#6
0
    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;
    }