public void Send(string message, string rarget)
        {
            var server     = new NotificationServer();
            var connection = server.Connect("192.168.1.1");
            var authToken  = server.Authenticate("23", "322");

            server.Send(authToken, new Message(message), rarget);
            server.Disconnect();
        }
        public void Send(string message, string target)
        {
            var server     = new NotificationServer();
            var connection = server.Connect("1234");
            var authToken  = server.Authenticate("asd", "asd");

            server.Send(authToken, new Message(message), target);
            connection.disconnect();
        }
        public void Send(string msg, string target)
        {
            var server     = new NotificationServer();
            var connection = server.Connect("ip");
            var authToken  = server.Authenticate("appId", "key");

            server.Send(authToken, new Message(msg), target);
            server.Disconnect();
        }
Example #4
0
        public void Send(string message, string target)
        {
            var server = new NotificationServer();

            var connection = server.Connect("ipAddress");
            var authToken  = server.Authenticate("appId", "key");

            server.Send(authToken, message, target);

            connection.Disconnect();
        }