Chuyển tới nội dung chính

ProjectVLobbyProfile class

The player's identity and level as shown in the Lobby. Read-only.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Lobby

public sealed class ProjectVLobbyProfile

Constructors​

ProjectVLobbyProfile(string userId, string username, string displayName, long level, string avatarUrl)​

Creates a profile. The SDK builds these for you; create one yourself only for tests or previews.

public ProjectVLobbyProfile(string userId, string username, string displayName, long level, string avatarUrl);

Parameters

NameTypeDescription
userIdstringThe player's account ID; must not be blank.
usernamestringThe player's unique username; must not be blank.
displayNamestringThe name to show; when blank, username is used.
levellongThe player's level, 1 or higher.
avatarUrlstringThe avatar image URL; null is stored as empty.

Exceptions

ExceptionWhen
ArgumentExceptionuserId or username is blank.
ArgumentOutOfRangeExceptionlevel is below 1.

Properties​

PropertyTypeDescription
UserIdstringThe player's account ID. Not for display.
UsernamestringThe player's unique username.
DisplayNamestringThe name to show; falls back to Username when the player has none.
LevellongThe player's level, 1 or higher.
AvatarUrlstringThe avatar image URL. Currently always empty; show the default avatar.
AvatarFrameIdstring?The avatar frame to show. Not supported yet: always null.