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

com.sinch.sdk.domains.verification.models.v1.status.StatusCallResult Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.verification.models.v1.status;

import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;

/** The type of the call result. */
public class StatusCallResult extends EnumDynamic {

  /** Call answered */
  public static final StatusCallResult ANSWERED = new StatusCallResult("ANSWERED");

  /** Call canceled */
  public static final StatusCallResult CANCEL = new StatusCallResult("CANCEL");

  /** Call completed */
  public static final StatusCallResult COMPLETED = new StatusCallResult("COMPLETED");

  /** No answer to call */
  public static final StatusCallResult NO_ANSWER = new StatusCallResult("NO_ANSWER");

  /** Busy Call */
  public static final StatusCallResult BUSY = new StatusCallResult("BUSY");

  /** Call failed */
  public static final StatusCallResult FAILED = new StatusCallResult("FAILED");

  private static final EnumSupportDynamic ENUM_SUPPORT =
      new EnumSupportDynamic<>(
          StatusCallResult.class,
          StatusCallResult::new,
          Arrays.asList(ANSWERED, CANCEL, COMPLETED, NO_ANSWER, BUSY, FAILED));

  private StatusCallResult(String value) {
    super(value);
  }

  public static Stream values() {
    return ENUM_SUPPORT.values();
  }

  public static StatusCallResult from(String value) {
    return ENUM_SUPPORT.from(value);
  }

  public static String valueOf(StatusCallResult e) {
    return ENUM_SUPPORT.valueOf(e);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy