Class BotsCallback.Response

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing interface:
    BotsCallback

    public static class BotsCallback.Response
    extends java.lang.Object
    implements java.io.Serializable
    An object which represents the response of SDK initialization.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Response​(int statusCode)
      Creates a response with the given status code
      Response​(int statusCode, java.lang.String errorMessage)
      Creates a response with the given status code and error message
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorMessage()
      Accessor method for the error message of the response
      int getStatusCode()
      Accessor method for the status code of the response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Response

        public Response​(int statusCode)
        Creates a response with the given status code
        Parameters:
        statusCode - The status code of the response
      • Response

        public Response​(int statusCode,
                        java.lang.String errorMessage)
        Creates a response with the given status code and error message
        Parameters:
        statusCode - The status code of the response
        errorMessage - The error message of the response
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Accessor method for the status code of the response
        Returns:
        statusCode The status code of the response
      • getErrorMessage

        public java.lang.String getErrorMessage()
        Accessor method for the error message of the response
        Returns:
        errorMessage The error message of the response