//
koffee-backend
/
eu.yeger.koffee.model.dto
/
Result
/
Success
Success
Result
class for successful operations.
Author
Jan Müller
class
Success
<
T
:
Any
> (data:
T
,status:
HttpStatusCode
) :
Result
Content copied to clipboard
Constructors
Functions
Properties
Parameters
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
)
Content copied to clipboard
Functions
equals
Link copied to clipboard
open operator override fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
open override fun
hashCode
():
Int
Content copied to clipboard
toString
Link copied to clipboard
open override fun
toString
():
String
Content copied to clipboard
Properties
data
Link copied to clipboard
The data of the
Result
.
val
data
:
T
Content copied to clipboard
status
Link copied to clipboard
The HTTP status code.
override val
status
:
HttpStatusCode
Content copied to clipboard