PlayPortalProfile

Class representing a playPORTAL user's profile.

Properties

public string userId;

An id that is unique for each playPORTAL profile.

public UserType userType;

A profile's user type is determined by the user's age.

public AccountType accountType;

A profile's account type is determined when that account is created. When creating sandbox users in the developer dashboard, you can set their account type as either Parent, Adult, or Child.

public string handle;

The user's handle.

public string firstName;

The user's first name. Some account types, such as a Character account, will not have a first name, in which case firstName will be null.

public string lastName;

The user's last name. Some account types, such as a Character account, will not have a last name, in which case lastName will be null.

public string profilePic;

A string representing the id of a user's profile pic. A user is not required to have a profile pic, in which case profilePic will be null.

public string coverPhoto;

A string representing the id of a user's cover photo. A user is not required to have a cover photo, in which case coverPhoto will be null.

public string country;

The country code representing where the profile was created.

public bool anonymous;

Indicates whether or not this user was created anonymously.

Internal Types

UserType

public enum UserType

An enum representing the possible user types a profile can have. User type is determined be a user's age, e.g., a user whose age is 18+ will have a userType of adult.

Adult,
Child,
TeenMinor

AccountType

public enum AccountType

An enum representing the possible account types a profile can have. Account type is determined when a user account is created, e.g., when a parent creates an account, they will have an accountType of parent.

case parent
case kid
case adult
case character
case community