Dev Socket Response

data class DevSocketResponse<T>(    val nameSpace: String?,     val command: String?,     val data: T?)

Refer to this file: https://docs.google.com/document/d/11ZdJ68wcDW1kDaDwl0zYsgsgpDssjeTHCMns93zWCRM/edit?usp=sharing

Author

Jimly A.

Since

27-Mar-22

Constructors

Link copied to clipboard
fun <T> DevSocketResponse(    nameSpace: String?,     command: String?,     data: T?)

Properties

Link copied to clipboard
@SerializedName(value = "command", alternate = ["fuction"] )
val command: String?

which function to call from the module

Link copied to clipboard
@SerializedName(value = "data" )
val data: T?
Link copied to clipboard
@SerializedName(value = "namespace", alternate = ["module", "protocol"] )
val nameSpace: String?

module that we interact through webSocket

Sources

Link copied to clipboard