Success

Result class for successful operations.

Author

Jan Müller
class Success<T : Any> (data: T,status: HttpStatusCode) : Result

Parameters

status
The HTTP status code.
T
The type of the data.

Constructors

<init>
Link copied to clipboard
The type of the data.
fun <T : Any> <init>(data: T, status: HttpStatusCode)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

data
Link copied to clipboard
The data of the Result.
val data: T
status
Link copied to clipboard
The HTTP status code.
override val status: HttpStatusCode