Skip to main content

UserInfo

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Responses.

A user as returned by the Alta web API: id and username. Equal when the ids match.

Constructors​

MemberWhat it is
UserInfo()Creates an UserInfo from identifier and username.
UserInfo(int identifier, string username)Creates an UserInfo from identifier and username.

Properties​

MemberWhat it is
int Identifier { get; set; }The user's account id.
string Username { get; set; }The user's name.
1 private and internal property
MemberWhat it is
private string Alta.Api.DataTransferModels.Models.Responses.INamedEntity.Name { get; }Returns Username, so a UserInfo can be shown wherever a named entity is expected.

Methods​

MemberWhat it is
override bool Equals(object obj)True if the other object is a UserInfo with the same id; the username is ignored.
override int GetHashCode()Based on the id only.
override string ToString()Formats as (Username:Identifier).

Used in​

Members of other types that take, return or hold a UserInfo:

GroupBans.Add, GroupInvites.Add, HighLevelApiClient.RegisterOculusUserAsync, HighLevelApiClient.RegisterPicoUserAsync, HighLevelApiClient.RegisterUserAsync, IHighLevelApiClient.RegisterOculusUserAsync, IHighLevelApiClient.RegisterPicoUserAsync, IHighLevelApiClient.RegisterUserAsync, IOculusClient.GetLinkedAccount, IPicoClient.GetLinkedAccount, IRecentPlayersClient.RecordInteractionAsync, IServerAccess.SetOnlinePlayersAsync, IUserApiClient.GetUserInfoAsync, LocalServerAccess.SetOnlinePlayersAsync, OculusClient.GetLinkedAccount, OfflineHighLevelApiClient.RegisterOculusUserAsync, OfflineHighLevelApiClient.RegisterPicoUserAsync, OfflineHighLevelApiClient.RegisterUserAsync, OfflineUserApiClient.GetUserInfoAsync, PaginatedListWithAdd<T>.Add, PicoClient.GetLinkedAccount, PlayerReportSummary.ReportedPlayer, PlayerReportSummary.Reporters, RecentPlayersClient.RecordInteractionAsync, ServerAccess.SetOnlinePlayersAsync, UserApiClient.GetUserInfoAsync, LowLevelApiClient.GetLinkedAccountForOculusUser, LowLevelApiClient.GetLinkedAccountForPicoUser, LowLevelApiClient.GetUserByUsernameAsync, LowLevelApiClient.RegisterAsync, LowLevelApiClient.VerifyUserAsync, RecentPlayerInteractionRequest.OtherUser, SetServersOnlinePlayersRequest.OnlinePlayers, DiscordSupporterRoleVerificationResults.GainedSupporters, DiscordSupporterRoleVerificationResults.RemovedSupporters, GameServerInfo.OnlinePlayers, GroupMemberInfo.UserInfo, PlayerReportInfo.ActingUser, PlayerReportInfo.ReportedUser, PlayerReportInfo.ReportingUser, RecentPlayerInteractionInfo.UserInfo, TrialCommandModule.Players, PickupActionData.DestinationUser, PickupEventStreamLogger.GetUserInfoFromDock, PickupEventStreamLogger.GetUserInfoFromInteractor, FriendsManager.ConfigureTokenForTab, FriendsManager.DisplayUser, FriendsManager.GetUserInfoToDisplay, UserToken.Setup, UserToken.UserInfo, InviteUserToGroupPanel.SetupForUser, InviteUserToGroupPanel.user, InviteUserToGroupViaFriendsPanel.FinishInvite, InviteUserToGroupViaFriendsPanel.InviteToGroup, InviteUserToGroupViaFriendsPanel.SpawnAltaFriendButtons, PlayerJoinLeaveData.user, AuthenticationService.RegisterAccount, UserService.RegisterAccount, IAuthenticationService.RegisterAccount, KilledData.killerPlayer and 23 more.