Class

Profile

Profile(profileData)

Constructor

# new Profile(profileData)

Represents a user profile.
Parameters:
Name Type Description
profileData ProfileData The data for the week.

View Source structures/accounts/profile/Profile.js, line 11

Members

number

# id

The profile id of a user.

View Source structures/accounts/profile/Profile.js, line 16

number

# nullable patronLevel

The patron level a user has.

View Source structures/accounts/profile/Profile.js, line 40

string

# nullable townName

The town/island name the user entered in his passport.

View Source structures/accounts/profile/Profile.js, line 34

string

# username

The username of a user.

View Source structures/accounts/profile/Profile.js, line 22

string

# nullable villagerName

The villager name the user entered in his passport.

View Source structures/accounts/profile/Profile.js, line 28

Array.<Week>

# weeks

The weeks of a user. (not available via Accounts.fetchFriends)

View Source structures/accounts/profile/Profile.js, line 48

Methods

# toString() → {string}

Return the username of a user.

View Source structures/accounts/profile/Profile.js, line 59

string