Examples of MchoiceAventuraResponse


Examples of hsenidmobile.sdp.rest.servletbase.MchoiceAventuraResponse

        address = "+94969696969";
      }

      System.out.println("Start sending sms message[" + message + "] to [" + address + "]");

      MchoiceAventuraResponse response = sender.sendMessage(message, address);
      if (response.isSuccess()) {
        System.out.println("Message [" + message + "] sent successfully to [" + address + "].");
      } else {
        System.out.println("Failed to send message due to [" + response.getStatusCode() + "]["
            + response.getStatusMessage() + "].");
      }
    } catch (MalformedURLException e) {
      System.out.println("Url format is wrong, check the url again.");
      e.printStackTrace(System.err);
    } catch (MchoiceAventuraMessagingException e) {
View Full Code Here

Examples of hsenidmobile.sdp.rest.servletbase.MchoiceAventuraResponse

        message = "test message";
      }

      System.out.println("Start sending broadcast message[" + message + "]");

      MchoiceAventuraResponse response = sender.broadcastMessage(message);
      if (response.isSuccess()) {
        System.out.println("Message [" + message + "] broadcast successfully.");
      } else {
        System.out.println("Failed to send message due to [" + response.getStatusCode() + "]["
            + response.getStatusMessage() + "].");
      }
    } catch (MalformedURLException e) {
      System.out.println("Url format is wrong, check the url again.");
      e.printStackTrace(System.err);
    } catch (MchoiceAventuraMessagingException e) {
View Full Code Here

Examples of hsenidmobile.sdp.rest.servletbase.MchoiceAventuraResponse

      }

      System.out.println("Start sending sms message[" + message + "] to addresses[" + Arrays.toString(addresses)
          + "]");

      MchoiceAventuraResponse response = sender.sendMessage(message, addresses);

      if (response.isSuccess()) {
        System.out.println("Message [" + message + "] sent successfully to all addresses.");
      } else {
        System.out.println("Failed to send message due to [" + response.getStatusCode() + "]["
            + response.getStatusMessage() + "]");
      }
    } catch (MalformedURLException e) {
      System.out.println("Url format is wrong, check the url again.");
      e.printStackTrace(System.err);
    } catch (MchoiceAventuraMessagingException e) {
View Full Code Here

Examples of hsenidmobile.sdp.rest.servletbase.MchoiceAventuraResponse

            String sendingMessage = "Test message received. Thank you.";
            String sendingAddress = message.getAddress();

            System.out.println("Start sending sms message[" + sendingMessage + "] to [" + sendingAddress + "]");

            MchoiceAventuraResponse response = sender.sendMessage(sendingMessage, sendingAddress);
            if (response.isSuccess()) {
                System.out.println("Message [" + message + "] sent successfully to [" + sendingAddress + "].");
            } else {
                System.out.println("Failed to send message due to [" + response.getStatusCode() + "]["
                        + response.getStatusMessage() + "].");
            }
        } catch (MchoiceAventuraMessagingException e) {
            System.out.println("Exception occurred. Something wrong with message or connection ....");
            e.printStackTrace();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.