Click or drag to resize

User Class

Represents a user or client (either local or remote) that connected and in the current session
Inheritance Hierarchy
SystemObject
  ImmerseSDK.SessionsUser

Namespace:  ImmerseSDK.Sessions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public sealed class User

The User type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyClientType
Type of user or client, strongly typed to an enum value
Public propertyID
The unique ID of this user
Public propertyProfile
Profile type, used to identify user privilages within Unity
Public propertyRawClientType
Type of user or client
Public propertyRawProfile
Profile level, used to identify user privilages on the platform
Top
Methods
  NameDescription
Public methodEquals
Compares against object using Id
(Overrides ObjectEquals(Object).)
Public methodStatic memberFind
Gets a reference to the user object for the given id
Public methodStatic memberFindLocal
Gets a reference to the local user object
Public methodGetHashCode
HashCode generated from the User ID only
(Overrides ObjectGetHashCode.)
Public methodHasAllPrivilages
Checks if this user has all of the given privilages
Public methodHasAnyPrivilages
Checks if this user has any of the given privilages
Public methodHasPrivilage
Checks if this user has the given privilage
Public methodHasSpaceOwnerPrivilages Obsolete.
Returns true if the user is the owner of the current space, or has been granted facilitator privilages for that space
Public methodIsLocal
True if this user is local
Public methodToString
Helps in debugging and console output. PRints the current user's name, whether they are online, and if they are local or remote.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Public fieldArchwayID
The Archway id. Used to identify the user on the server
Public fieldAudioTags
List of audio tags currently associated with this user
Public fieldConnectionTypes
Identifies the connection type
Public fieldName
The display name for this user, as it is seen by others
Public fieldRawID
The Ghost id. Used to identify the user on the network
Public fieldRoleId
Assigned role id, where 0 is not assigned
Top
Extension Methods
  NameDescription
Public Extension MethodGetGroup
Returns the user's current group
(Defined by UserExtensions.)
Public Extension MethodHasConnectionType
Returns true if the user has the specified connection type
(Defined by UserExtensions.)
Top
See Also