chatroomuser - TogetherGames/Public-Unity-CSharp GitHub Wiki

ChatRoomUser

Together::ChatRoomUser

Overview

The ChatRoomUser class represents a User that is a member of a ChatRoom.


Members

long ChatRoomUserID

The ID of the ChatRoomUser.

long UserID

The ID of the User associated with the ChatRoomUser.

string Username

The username assigned to the User.

string Name

The Name assigned to the User. This will be the same as Username unless the User had registered.

string SocialID

The ID of the User on some social network. For Facebook, this will be their FacebookID.

string SocialType

The type of social network last used to register the User. For Facebook, this will be "FB".

int SecondsSinceJoin

The number of seconds since the user has joined the ChatRoom.

int LastActivityInSeconds

The number of seconds since the user has been active in a Together game.

long ClientID

The ID of the Client the User has last played a Game with.

long GameID

The ID of the Game the User has last played.

long PlatformID

The ID of the Platform of the last played Game for the User.


Methods


PostProcessUsername()

Post processes the ChatRoomUser's usernames. If a ChatRoomUser's User is registered, its Name member will be assigned the the name from their social network account. Otherwise, the Name member will be set to the User's Username.

Returns void
Syntax
ChatRoomUser.PostProcessUsername(  )

⚠️ **GitHub.com Fallback** ⚠️