All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plivo.api.models.powerpack.FindShortcode Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.46.0
Show newest version
package com.plivo.api.models.powerpack;

import com.plivo.api.models.base.Getter;
import retrofit2.Call;

public class FindShortcode extends Getter {

  private String shortcode;
  private String uuid;

  public FindShortcode(String uuid) {
    super(uuid);
    if (uuid == null) {
      throw new IllegalArgumentException("powerpack uuid cannot be null");
    }
    this.uuid = uuid;
  }

  public FindShortcode shortcode(String shortcode) {
    this.shortcode = shortcode;
    return this;
  }

  @Override
  protected Call obtainCall() {
    if (shortcode == null) {
      throw new IllegalArgumentException("number cannot be null");
    }
    return client().getApiService().powerpackFindShortcodeGet(client().getAuthId(), uuid, shortcode);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy