Examples of MmsFactory


Examples of pl.smsapi.api.MmsFactory

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

    MmsFactory smsApi = new MmsFactory(client());

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

    final String smil = "<smil><head><layout><root-layout height='100%' width='100%'/><region id='Image' width='100%' height='100%' left='0' top='0'/></layout></head><body><par><img src='http://www.smsapi.pl/media/mms.jpg' region='Image' /></par></body></smil>";

    StatusResponse result;
    BaseAction action = smsApi.actionSend()
        .setSubject("Test")
        .setSmil(smil)
        .setTo(numberTest)
        .setDateSent(time);
View Full Code Here

Examples of pl.smsapi.api.MmsFactory

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

    MmsFactory smsApi = new MmsFactory(client());

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

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

    MmsFactory smsApi = new MmsFactory(client());

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