Examples of VmsFactory


Examples of pl.smsapi.api.VmsFactory

  @Test
  //@Ignore
  public void vmsSendTtsTest() {

    VmsFactory smsApi = new VmsFactory(client());

    final long time = (new Date().getTime() / 1000) + 86400;

    final String tts = "to jest test";

    StatusResponse result;
    BaseAction action = smsApi.actionSend()
        .setTts(tts)
        .setTo(numberTest)
        .setDateSent(time);

    result = (StatusResponse) executeAction(action);
View Full Code Here

Examples of pl.smsapi.api.VmsFactory

  @Test
  @Ignore
  public void vmsSendFileTest() {

    VmsFactory smsApi = new VmsFactory(client());

    final long time = (new Date().getTime() / 1000) + 86400;

    final File fileAudio = new File("voice_small.wav");

    if (fileAudio.exists()) {

      StatusResponse result;
      BaseAction action = smsApi.actionSend()
          .setFile(fileAudio)
          .setTo(numberTest)
          .setDateSent(time);

      result = (StatusResponse) executeAction(action);
View Full Code Here

Examples of pl.smsapi.api.VmsFactory

  @Test
  //@Ignore
  public void vmsGetTest() {

    VmsFactory smsApi = new VmsFactory(client());

    System.out.println("VmsGet:");
    ids = readIds();

    if (ids != null) {
      StatusResponse result;
      BaseAction action = smsApi.actionGet().ids(ids);

      result = (StatusResponse) executeAction(action);

      for (MessageResponse item : result.getList()) {
        renderMessageItem(item);
View Full Code Here

Examples of pl.smsapi.api.VmsFactory

  @Test
  //@Ignore
  public void vmsDeleteTest() {

    VmsFactory smsApi = new VmsFactory(client());

    System.out.println("VmsDelete:");
    ids = readIds();

    if (ids != null) {
      CountableResponse item;
      BaseAction action = smsApi.actionDelete().ids(ids);;

      item = (CountableResponse) executeAction(action);

      System.out.println("Delete: " + item.getCount());
    }
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.