-
-
Save le0nidas/094d67c95a8072444164f7e223f84160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class AssignedTo | |
object AssignedToNoOne : AssignedTo() | |
data class AssignedToUser(val user: User) : AssignedTo() | |
data class AssignedToGroup(val group: Group) : AssignedTo() | |
class Task(val name: String, val assignedTo: AssignedTo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment