001package com.plivo.api.models.powerpack;
002
003import com.plivo.api.models.base.Getter;
004import retrofit2.Call;
005
006public class FindShortcode extends Getter<Shortcode> {
007
008  private String shortcode;
009  private String uuid;
010
011  public FindShortcode(String uuid) {
012    super(uuid);
013    if (uuid == null) {
014      throw new IllegalArgumentException("powerpack uuid cannot be null");
015    }
016    this.uuid = uuid;
017  }
018
019  public FindShortcode shortcode(String shortcode) {
020    this.shortcode = shortcode;
021    return this;
022  }
023
024  @Override
025  protected Call<Shortcode> obtainCall() {
026    if (shortcode == null) {
027      throw new IllegalArgumentException("number cannot be null");
028    }
029    return client().getApiService().powerpackFindShortcodeGet(client().getAuthId(), uuid, shortcode);
030  }
031}