
com.plivo.api.models.verify.VerifyCallerId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plivo-java Show documentation
Show all versions of plivo-java Show documentation
A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML
package com.plivo.api.models.verify;
import com.plivo.api.models.base.VoiceCreator;
import retrofit2.Call;
public class VerifyCallerId extends VoiceCreator {
private String otp;
private final String id;
public VerifyCallerId(String id) {
if (id == null) {
throw new IllegalArgumentException("verification uuid cannot be null");
}
this.id = id;
}
public String getOtp() {
return otp;
}
public VerifyCallerId otp(final String otp) {
this.otp = otp;
return this;
}
@Override
protected Call obtainCall() {
return client().getVoiceApiService().verifyCallerID(client().getAuthId(),id,this);
}
@Override
protected Call obtainFallback1Call() {
return client().getVoiceFallback1Service().verifyCallerID(client().getAuthId(),id,this);
}
@Override
protected Call obtainFallback2Call() {
return client().getVoiceFallback2Service().verifyCallerID(client().getAuthId(),id,this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy