Cohort

@JsonClass(generateAdapter = true)
data class Cohort(val cohortId: String, val privacyPolicy: String?, val cohortName: String?, val dataPattern: String?, val gpsResolution: Int, val canWithdraw: Int, val syncOnScreenOff: Int?, val perimeterCheck: Int?, val permAppId: Int?, val permDrawOver: Int?, val permLocation: Int?, val permContact: Int?)

When subscribing to a cohort with a cohort ID or a subscription ID, the call will return an object of this class which contains all information related to the cohort including necessary permissions and privacy policy.

Constructors

Link copied to clipboard
constructor(cohortId: String, privacyPolicy: String?, cohortName: String?, dataPattern: String?, gpsResolution: Int, canWithdraw: Int, syncOnScreenOff: Int?, perimeterCheck: Int?, permAppId: Int?, permDrawOver: Int?, permLocation: Int?, permContact: Int?)

Properties

Link copied to clipboard

It is 1 if the device is allowed to withdraw, if 0 only the cohort manager can withdraw the device

Link copied to clipboard

Identification UUID fo the cohort

Link copied to clipboard

Human readable title

Link copied to clipboard

Data pattern - disregard, this is only used internally

Link copied to clipboard

Deprecated - we do not use gps in newer versions

Link copied to clipboard

Deprecated - we do not use this functionality anymore

Link copied to clipboard

Is app id permission necessary for this cohort

Link copied to clipboard

Deprecated - we do not use this functionality anymore

Link copied to clipboard

Is draw over permission necessary for this cohort

Link copied to clipboard

Deprecated - we do not use location anymore

Link copied to clipboard

Privacy policy

Link copied to clipboard

Deprecated - we do not use this functionality anymore