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

com.sinch.sdk.domains.conversation.models.v1.ConversationDirection Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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