Skip to content

Instantly share code, notes, and snippets.


le0nidas/task.kt Secret

Created Oct 28, 2018
What would you like to do?
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