toggle menu
Cloudstream
cloudstream
switch theme
search in API
Cloudstream
/
com.lagradost.cloudstream3.mvvm
/
Resource
Resource
sealed
class
Resource
<
out
T
>
(
source
)
Inheritors
Success
Failure
Loading
Members
Types
Failure
Link copied to clipboard
data
class
Failure
(
val
isNetworkError
:
Boolean
,
val
errorCode
:
Int
?
,
val
errorResponse
:
Any
?
,
val
errorString
:
String
)
:
Resource
<
Nothing
>
Loading
Link copied to clipboard
data
class
Loading
(
val
url
:
String
?
=
null
)
:
Resource
<
Nothing
>
Success
Link copied to clipboard
data
class
Success
<
out
T
>
(
val
value
:
T
)
:
Resource
<
T
>