com.sinch.sdk.domains.conversation.models.v1.ConversationDirection 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.conversation.models.v1;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
/** Gets or Sets ConversationDirection */
public class ConversationDirection extends EnumDynamic {
/** The direction is undefined. */
public static final ConversationDirection UNDEFINED_DIRECTION =
new ConversationDirection("UNDEFINED_DIRECTION");
/** Sent to the Conversation API app. */
public static final ConversationDirection TO_APP = new ConversationDirection("TO_APP");
/** Sent to a recipient/contact from the Conversation API app. */
public static final ConversationDirection TO_CONTACT = new ConversationDirection("TO_CONTACT");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
ConversationDirection.class,
ConversationDirection::new,
Arrays.asList(UNDEFINED_DIRECTION, TO_APP, TO_CONTACT));
private ConversationDirection(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static ConversationDirection from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(ConversationDirection e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy