togetherusernotification - TogetherGames/Public-Corona-Lua GitHub Wiki

TogetherUserNotification

Together::TogetherUserNotification

Overview

The UserNotification class represents a together UserNotification.


Members

number UserNotificationID

The ID of the UserNotification.

string NotficationType

The type of notification the UserNotification is.

string Purpose

The purpose of the UserNotification.

string Message

The textual (message) of the UserNotification.

number OriginalGameInstanceID

The ID of the original GameInstance associated with the UserNotification. This member is used for rematch invite notifications.

number GameInstanceID

The ID of the GameInstance associated with the UserNotification.

number AchievementID

The ID of the Achievement associated with the UserNotification. If the User accepts the UserNotification, then they will be awarded this Achievement.

number ItemID

The ID of the Item associated with the UserNotification. If the User accepts the UserNotification, then they will be awarded this Item.

number ItemCount

The number of Items to award the User when they accept the UserNotification.

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].

number ChatRoomID

The ID of the ChatRoom the UserNotification was sent from.

number FromUserID

The ID of the User that sent the UserNotification.

string FromUsername

The username of the User that sent the UserNotification.

boolean Processed

A boolean indicating whether the UserNotification was processed.

boolean Accepted

A boolean indicating whether the UserNotification was accepted.

number SecondsSinceCreated

The number of seconds since the UserNotification was created.

number FromUserLastActivityInSeconds

The number of seconds since the User that sent the UserNotification has been active in any together Game.

number FromClientID

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

number FromGameID

The ID of the Game the User that sent the UserNotification has last played.

number FromPlatformID

The ID of the Platform of the last played Game for the User that sent the UserNotification.


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