Examples of SmsFactory


Examples of pl.smsapi.api.SmsFactory

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

    SmsFactory smsApi = new SmsFactory(client());

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

    StatusResponse result;
    BaseAction action = smsApi.actionSend()
        .setText("test message")
        .setTo(numberTest)
        .setDateSent(time);

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

Examples of pl.smsapi.api.SmsFactory

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

    SmsFactory smsApi = new SmsFactory(client());

    System.out.println("SmsGet:");
    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.SmsFactory

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

    SmsFactory smsApi = new SmsFactory(client());

    System.out.println("SmsDelete:");
    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.