Class ResultInfo
java.lang.Object
com.azure.communication.callingserver.models.ResultInfo
Result info class to be used to report result status for actions/operations.
-
Constructor Summary
ConstructorDescriptionResultInfo
(Integer code, Integer subcode, String message) Initializes a new instance of ResultInfo. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code property: Gets the result code For synchronous failures, this maps one-to-one with HTTP responses.Get the message property: Gets the message The message is a detail explanation of subcode.Get the subcode property: Gets the result subcode.
-
Constructor Details
-
ResultInfo
Initializes a new instance of ResultInfo.- Parameters:
code
- the code value.subcode
- the subcode value.message
- the message value.
-
-
Method Details
-
getCode
Get the code property: Gets the result code For synchronous failures, this maps one-to-one with HTTP responses. For asynchronous failures or messages, it is contextual.- Returns:
- the code value.
-
getSubcode
Get the subcode property: Gets the result subcode. The subcode further classifies a failure.- Returns:
- the subcode value.
-
getMessage
Get the message property: Gets the message The message is a detail explanation of subcode.- Returns:
- the message value.
-