Package ai.nexconn.call.api
Enum Class NCCallCode
- All Implemented Interfaces:
Serializable,Comparable<NCCallCode>,Constable
Call business status codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhenNCCallEngine.startCall(java.util.List, NCCallType, NCCallMediaType)andNCCallEngine.endCall(String)are called in quick succession, the started call is actively hung up (status code 80202).Empty call ID passed to the API (status code 80008).Failed to switch the camera (status code 80204).After an API is called, internal requests may be retried on failure.An internal SDK processing exception occurred.Media type switching is not allowed for the current call (status code 80004).The current call has not been established.The current user is already in a call and cannot start or join a new call (status code 80002).Invalid method argument when calling an API (status code 80001).The audio/video service has not taken effect yet or has been disabled (status code 80006).The SDK has not been initialized (status code 80200).Only one user is allowed in the participant list when starting a one-to-one call (status code 80011).Success (status code 0).Empty transaction ID passed to the API (status code 80009).Unknown error (status code -1).Empty user ID passed to the API (status code 80010).Empty user list passed to the API (status code 80007). -
Method Summary
Modifier and TypeMethodDescriptionReturns the status code description.intgetValue()Returns the numeric status code.toString()static NCCallCodevalueOf(int value) Resolves the status code from its numeric value.static NCCallCodeReturns the enum constant of this class with the specified name.static NCCallCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
UNKNOWN
Unknown error (status code -1). -
SUCCESS
Success (status code 0). -
PARAMETER_ERROR
Invalid method argument when calling an API (status code 80001). -
ON_CALLING
The current user is already in a call and cannot start or join a new call (status code 80002). -
NOT_IN_CALL
The current call has not been established. This occurs when a call-related function is invoked while the current user has no ongoing call, so the function cannot execute normally (status code 80003). -
MEDIA_TYPE_INVALID
Media type switching is not allowed for the current call (status code 80004). -
RTC_SERVICE_UNAVAILABLE
The audio/video service has not taken effect yet or has been disabled (status code 80006). -
USER_LIST_INVALID
Empty user list passed to the API (status code 80007). -
CALL_ID_INVALID
Empty call ID passed to the API (status code 80008). -
TRANSACTION_ID_INVALID
Empty transaction ID passed to the API (status code 80009). This error can be thrown by methods such asNCCallEngine.replyChangeMediaType(String, boolean)andNCCallEngine.cancelChangeMediaType(String). -
USER_ID_INVALID
Empty user ID passed to the API (status code 80010). -
SINGLE_CALL_NOT_SUPPORT_MULTI_PERSON
Only one user is allowed in the participant list when starting a one-to-one call (status code 80011). -
SDK_NOT_INITIALIZED
The SDK has not been initialized (status code 80200). CallNCCallEngine#initialize(INCCallInitOptions)first. -
EXECUTION_METHOD_INTERRUPTED
After an API is called, internal requests may be retried on failure. This code indicates the method was interrupted by another API call during retry (status code 80201). -
CALL_ABRUPT_HANGUP
WhenNCCallEngine.startCall(java.util.List, NCCallType, NCCallMediaType)andNCCallEngine.endCall(String)are called in quick succession, the started call is actively hung up (status code 80202). -
INTERNAL_ERROR
An internal SDK processing exception occurred. Collect detailed logs for troubleshooting when this happens (status code 80203). -
CAMERA_SWITCH_ERROR
Failed to switch the camera (status code 80204).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()Returns the numeric status code. -
getReason
Returns the status code description. -
valueOf
Resolves the status code from its numeric value.- Parameters:
value- status code value- Returns:
- the matching status code, or
UNKNOWNfor unknown values
-
toString
- Overrides:
toStringin classEnum<NCCallCode>
-