001package com.plivo.api.models.endpoint; 002 003import com.plivo.api.models.base.VoiceGetter; 004import retrofit2.Call; 005 006public class EndpointGetter extends VoiceGetter<Endpoint> { 007 008 public EndpointGetter(String id) { 009 super(id); 010 } 011 012 @Override 013 protected Call<Endpoint> obtainCall() { 014 return client().getVoiceApiService().endpointGet(client().getAuthId(), id); 015 } 016 017 @Override 018 protected Call<Endpoint> obtainFallback1Call() { 019 return client().getVoiceFallback1Service().endpointGet(client().getAuthId(), id); 020 } 021 022 @Override 023 protected Call<Endpoint> obtainFallback2Call() { 024 return client().getVoiceFallback2Service().endpointGet(client().getAuthId(), id); 025 } 026}