File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ a `NetworkResponse` type.
1515
1616` NetworkResponse<S, E> ` is a Kotlin sealed interface with the following states:
1717
18- 1 . Success: Represents successful network calls (2xx response codes)
19- 2 . Error: Represents unsuccessful network calls
20- 1 . ServerError: Server errors (non 2xx responses)
21- 2 . NetworkError: IO Errors, connectivity problems
22- 3 . UnknownError: Any other errors, like serialization exceptions
18+ - ` Success ` : Represents successful network calls (2xx response codes)
19+ - ` Error ` : Represents unsuccessful network calls
20+ - ` ServerError ` : Server errors (non 2xx responses)
21+ - ` NetworkError ` : IO Errors, connectivity problems
22+ - ` UnknownError ` : Any other errors, like serialization exceptions
2323
2424It is generic on two types: a success response (` S ` ), and an error response (` E ` ).
2525
You can’t perform that action at this time.
0 commit comments