Пример #1
0
        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 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();
        }