Package oracle.cloud.bots.mobile.core
Class BotsCallback.Response
- java.lang.Object
-
- oracle.cloud.bots.mobile.core.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
-
-
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 responseint
getStatusCode()
Accessor method for the status code of the response
-
-
-
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 responseerrorMessage
- 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
-
-