chatmessage - TogetherGames/Public-Unity-CSharp GitHub Wiki

ChatMessage

Together::ChatMessage

Overview

The ChatMessage class represents a ChatMessage.


Members

long ChatMessageID

The ID of the ChatMessage.

long ParentChatMessageID

The ID of the parent ChatMessage.

long ChatRoomID

The ID of the ChatRoom the ChatMessage belongs to.

long UserID

The ID of the User associated with the ChatMessage.

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 SocialType

The type of social network the User is registered with. Facebook="FB".

string SocialID

The ID of the social user the User had registered as. Facebook=[User's facebook ID].

int SecondsSinceCreated

The number of seconds since the ChatMessage was created.

int SecondsLinceLastModified

The number of seconds since the ChatMessage has been last modified.

string Message

The textual message for the ChatMessage.

bool Read

A boolean indicating whether the ChatMessage has been read.

int FromUserLastActivityInSeconds

The number of seconds since the User who submitted the ChatMessage has been active in a Together game.

long FromClientID

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

long FromGameID

The ID of the Game the User has last played.

long FromPlatformID

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


Methods


PostProcessUsername()

Post processes the ChatMessage's usernames. If a ChatMessage'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
ChatMessage.PostProcessUsername(  )

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