com.sinch.sdk.domains.verification.models.v1.status.StatusCallResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
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