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