SDK Reference v2.0.0 / ParticipantDemographics

ParticipantDemographics

struct ParticipantDemographics : Decodable

Demographic fields populated for a participant.


email
let email: String?

Participant’s email address.

mobilePhone
let mobilePhone: String?

Participant’s mobile phone number

firstName
let firstName: String?

Participant’s first name.

middleName
let middleName: String?

Participant’s middle name.

lastName
let lastName: String?

Participant’s last name.

street1
let street1: String?

A component of a participant’s street address.

street2
let street2: String?

A component of a participant’s street address.

city
let city: String?

A component of a participant’s street address.

state
let state: String?

A component of a participant’s street address.

postalCode
let postalCode: String?

A component of a participant’s street address.

dateOfBirth
let dateOfBirth: String?

Participant’s date of birth, with format yyyy-MM-dd.

preferredLanguage
let preferredLanguage: String?

Participant’s preferred language, as an ISO language code.

gender
let gender: ParticipantGender?

Participant’s gender.

utcOffset
let utcOffset: String?

Participant’s local time zone represented as a UTC offset, e.g., “-04:00:00”.

timeZone
let timeZone: String?

Participant’s local time zone identifier, e.g. "America/New_York".

isUnsubscribedFromEmails
var isUnsubscribedFromEmails: Bool { get }

Indicates that the participant has unsubscribed from MyDataHelps email notifications.

isUnsubscribedFromSMS
var isUnsubscribedFromSMS: Bool { get }

Indicates that the participant has unsubscribed from MyDataHelps SMS notifications.