Package net.sourceforge.prowl.api

Examples of net.sourceforge.prowl.api.DefaultProwlEvent


    }

    public String push(String eventStr, String messageStr, int priority) {
        String message = "";
        if (deliveryMethod == DeliveryMethod.PROWL) {
            ProwlEvent e = new DefaultProwlEvent(apiKey, applicationName, eventStr, messageStr, priority);
            try {
                message = prowlClient.pushEvent(e);
                System.out.println(message);
            } catch (ProwlException e1) {
                e1.printStackTrace();
View Full Code Here


      ProwlClient client = new ProwlClient();
      if (StringUtils.isNotBlank(Prowl.url)) {
        client.setProwlUrl(Prowl.url);
      }
     
      ProwlEvent event = new DefaultProwlEvent(
          apiKey, "openhab", subject,
          message, normalizedPriority);
     
      try {
        String returnMessage = client.pushEvent(event);
View Full Code Here

TOP

Related Classes of net.sourceforge.prowl.api.DefaultProwlEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.