Skip to content

Suggestion : Great exampleΒ #2

@ideaBlender

Description

@ideaBlender

Could not find anywhere to leave a thank you for creating this. Ty its awesome.

Just a suggestion for the team, with the type coupling between client/server we could really use some documentation on how to create a serializable sealed class for the server results.

Something like this:

@Serializable
sealed class ApiResponse {
    data class Success<out T : Any>(val value: T) : ApiResponse()
    object Failure : ApiResponse()
    object InFlight : ApiResponse()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions