success Response

protected open fun successResponse(): String

Method to get the payload for a successful response No-any params required

Return

the payload for a successful response as String


protected open fun <V> successResponse(value: V): HashMap<String, V>

Method to get the payload for a successful response

Return

the payload for a successful response as HashMap of V

Parameters

value

: the value to send as response

<V>

generic type for the values in the payload


protected open fun successResponse(message: JSONObject): String

Method to get the payload for a successful response

Return

the payload for a successful response as String

Parameters

message

: the message to send as response