Пример #1
0
 public PushoverPoster(string title, string url, string message)
 {
     _message = message;
     _title = title;
     _url = url;
     _consoleHelper = new ConsoleHelper();
 }
Пример #2
0
        static int Main()
        {
            var request = new ConsoleHelper().GetRequest();
            var pusher = new PushoverPoster(request.Title, request.Url, request.Message);
            var succeeded = pusher.Post();

            Console.WriteLine("Post sent.");
            System.Threading.Thread.Sleep(2000);

            return succeeded ? 1 : 0;
        }