commonMain.dk.cachet.carp.common.application.users.AssignedTo.kt Maven / Gradle / Ivy
Go to download
Helper classes and base types relied upon by all subsystems. This library does not contain any domain logic.
The newest version!
package dk.cachet.carp.common.application.users
import kotlinx.serialization.*
import kotlin.js.JsExport
/**
* Determines which participant roles to assign to something.
*/
@Serializable
@JsExport
sealed class AssignedTo
{
/**
* Assign this to all participants in the study protocol.
*/
@Serializable
object All : AssignedTo()
/**
* Assign this to the specified [roleNames] in the study protocol.
*/
@Serializable
data class Roles(
@Suppress( "NON_EXPORTABLE_TYPE" )
val roleNames: Set
) : AssignedTo()
}