SnarlNetwork() public method

public SnarlNetwork ( string hostName, int hostPort ) : void
hostName string
hostPort int
return void
Exemplo n.º 1
0
        public bool addClass(string appName, string className, string classTitle)
        {
            string request = "type=SNP#?version=1.0#?action=add_class#?app=" + appName + "#?class=" + className + "#?title=" + classTitle;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }
Exemplo n.º 2
0
        public bool notify(string appName, string className, string title, string text, string timeout, string icon)
        {
            string request = "type=SNP#?version=1.0#?action=notification#?app=" + appName + "#?class=" + className + "#?title=" + title + "#?text=" + text + "#?timeout=" + timeout + "#?icon=" + icon;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }
Exemplo n.º 3
0
        public bool unregister(string appName)
        {
            string request = "type=SNP#?version=1.0#?action=unregister#?app=" + appName;

            SNP.SnarlNetwork(hostName, hostPort, request);
            return(true);
        }