コード例 #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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #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();
        }