Package com. devbase. data. source. web. model

Defines base response from API either positive or negative case.

Types

Link copied to clipboard
data class ApiError(    var message: String = "",     var code: Int = 0,     var status: Boolean = false)

Base API error response

Link copied to clipboard
class DevApiResponse<T>

Base API Response

Link copied to clipboard
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

Link copied to clipboard
sealed class WebSocketStatus<T>