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.5.0.0 (3.5.0.0)
Syntax
C#
public sealed class User

The User type exposes the following members.

Constructors
  NameDescription
Public methodUser
Constructs a new user object. This is used by the serialisation code.
Public methodUser(Int32, String, String, Int32)
Creates a new user object
Top
Properties
  NameDescription
Public propertyClientType
Type of user or client
Public propertyID
The unique ID of this user
Public propertyProfile
Profile type, used to identify user privilages within Unity
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 methodHasSpaceOwnerPrivilages
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
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 fieldRawProfile
Profile level, used to identify user privilages on the platform
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