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

com.plivo.api.models.verify.VerifyCallerId 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.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