ProfilePublicData
public struct ProfilePublicData : Content
Used to return a user’s public profile contents. For viewing/editing a user’s own profile, see UserProfileData
.
Returned by: GET /api/v3/users/ID/profile
-
Basic info about the user–their ID, username, displayname, and avatar image.
Declaration
Swift
var header: UserHeader
-
An optional real world name of the user.
Declaration
Swift
var realName: String
-
An optional home location for the user.
Declaration
Swift
var homeLocation: String
-
An optional cabin number for the user.
Declaration
Swift
var roomNumber: String
-
An optional email address for the user.
Declaration
Swift
var email: String
-
An optional blurb about the user.
Declaration
Swift
var about: String
-
An optional greeting/message to visitors of the profile.
Declaration
Swift
var message: String
-
An optional dinner team assignemnt.
Declaration
Swift
var dinnerTeam: DinnerTeam?
-
A UserNote owned by the visiting user, about the profile’s user (see
UserNote
).Declaration
Swift
var note: String?
-
Whether the requesting user has favorited this user.
Declaration
Swift
var isFavorite: Bool
-
Declaration
Swift
init(user: User, note: String?, requesterAccessLevel: UserAccessLevel, requesterHasFavorite: Bool) throws