java.lang.Object
com.azure.communication.callingserver.models.ResultInfo

public final class ResultInfo extends Object
Result info class to be used to report result status for actions/operations.
  • Constructor Details

    • ResultInfo

      public ResultInfo(Integer code, Integer subcode, String message)
      Initializes a new instance of ResultInfo.
      Parameters:
      code - the code value.
      subcode - the subcode value.
      message - the message value.
  • Method Details

    • getCode

      public Integer 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

      public Integer getSubcode()
      Get the subcode property: Gets the result subcode. The subcode further classifies a failure.
      Returns:
      the subcode value.
    • getMessage

      public String getMessage()
      Get the message property: Gets the message The message is a detail explanation of subcode.
      Returns:
      the message value.