com.sinch.sdk.domains.verification.models.v1.status.StatusSource 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;
/**
* With the PIN SMS verification method, a user's phone number is verified by sending an SMS
* containing a PIN code that must be manually returned. If you are are using an Android handset,
* you could instead intercept the SMS message delivery and capture the PIN code automatically.
*/
public class StatusSource extends EnumDynamic {
/** PIN verification was performed automatically */
public static final StatusSource INTERCEPTED = new StatusSource("intercepted");
/** PIN verification was manually performed */
public static final StatusSource MANUAL = new StatusSource("manual");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
StatusSource.class, StatusSource::new, Arrays.asList(INTERCEPTED, MANUAL));
private StatusSource(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static StatusSource from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(StatusSource e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy