Enum Class NCCallResultCode

java.lang.Object
java.lang.Enum<NCCallResultCode>
ai.nexconn.call.api.NCCallResultCode
All Implemented Interfaces:
Serializable, Comparable<NCCallResultCode>, Constable

public enum NCCallResultCode extends Enum<NCCallResultCode>
Return results for call API methods.
  • Enum Constant Details

    • SUCCESS

      public static final NCCallResultCode SUCCESS
      The method call succeeded.
    • UNKNOWN

      public static final NCCallResultCode UNKNOWN
      An unknown error occurred while calling the method.
    • IM_NOT_CONNECTED

      public static final NCCallResultCode IM_NOT_CONNECTED
      Initialization failed because IM is not logged in.
    • IM_OR_RTC_SDK_VERSION_MISMATCH

      public static final NCCallResultCode IM_OR_RTC_SDK_VERSION_MISMATCH
      Initialization failed because the RongCloud IM SDK version does not match the RTC SDK version.
  • Method Details

    • values

      public static NCCallResultCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NCCallResultCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • getReason

      public String getReason()
    • valueOf

      public static NCCallResultCode valueOf(int value)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<NCCallResultCode>