MimiSignUpData
public struct MimiSignUpData
Data object that can be used to sign up a user for a Mimi account.
-
Permissions that are requested by Mimi.
- privacyPolicy: Mimi’s Privacy Policy.
- termsOfService: Mimi’s Terms of Service.
- contact: Whether the user can be contacted by Mimi.
Declaration
Swift
public enum Permission : String, CaseIterable -
Email to use for the user.
Declaration
Swift
public let email: String -
Password to set for the user.
Declaration
Swift
public let password: String -
Nickname for the user.
Declaration
Swift
public let nickname: String? -
Sex of the user.
Declaration
Swift
public let sex: MimiUser.Sex? -
Year of birth of the user.
Declaration
Swift
public let yearOfBirth: MimiUser.YearOfBirth? -
Country that the user lives in.
Declaration
Swift
public let country: String? -
Collection of permissions that the user has accepted.
Declaration
Swift
public let acceptedPermissions: [Permission] -
Create new Sign Up data.
Declaration
Swift
public init(email: String, password: String, nickname: String? = nil, sex: MimiUser.Sex? = nil, yearOfBirth: MimiUser.YearOfBirth? = nil, country: String? = nil, acceptedPermissions: [Permission]? = nil)Parameters
emailEmail to use for the user (Required).
passwordPassword to set for the user (Required).
nicknameNickname for the user.
sexSex of the user.
yearOfBirthYear of birth of the user.
countryCountry that the user lives in.
acceptedPermissionsCollection of permissions that the user has accepted.
MimiSignUpData Structure Reference