LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
LootLocker.Requests.LootLockerNotification Class Reference

A single notification for the player, including type, source, priority, content, and read status. More...

Public Member Functions

void MarkThisNotificationAsRead (Action< LootLockerReadNotificationsResponse > onComplete)
 Will mark this notification as read in LootLocker (though remember to check the response if it succeeded)
 

Properties

DateTime Created_at [get, set]
 The time that this notification was created.
 
string Expiration_date [get, set]
 At what time that this notification expires, after this time, the notification is no longer returned.
 
DateTime? Read_at [get, set]
 The time that this notification was read.
 
string Notification_type [get, set]
 The type of this notification.
 
LootLockerNotificationPriority Priority [get, set]
 The priority of this notification (default: medium)
 
string Source [get, set]
 The originating source of this notification (for example, did it originate from a purchase, a leaderboard reward, or a trigger?).
 
LootLockerNotificationSource SourceEnum [get, set]
 The originating source of this notification as an enum (for example, did it originate from a purchase, a leaderboard reward, or a trigger?).
 
LootLockerNotificationContent Content [get, set]
 The actual content of this notification.
 
string Id [get, set]
 The id of the notification, use this when marking as read.
 
string Player_id [get, set]
 The id of the player that this notification is for.
 
bool Read [get, set]
 Whether this notification has been read or not.
 

Detailed Description

A single notification for the player, including type, source, priority, content, and read status.

Member Function Documentation

◆ MarkThisNotificationAsRead()

void LootLocker.Requests.LootLockerNotification.MarkThisNotificationAsRead ( Action< LootLockerReadNotificationsResponse onComplete)
inline

Will mark this notification as read in LootLocker (though remember to check the response if it succeeded)

Parameters
onCompleteAction for handling the server response

Property Documentation

◆ Notification_type

string LootLocker.Requests.LootLockerNotification.Notification_type
getset

The type of this notification.

Use the static defines in LootLockerStaticStrings.LootLockerNotificationTypes know what possible values this can be.

◆ Read_at

DateTime? LootLocker.Requests.LootLockerNotification.Read_at
getset

The time that this notification was read.

Will be empty if the notification has not been read

◆ Source

string LootLocker.Requests.LootLockerNotification.Source
getset

The originating source of this notification (for example, did it originate from a purchase, a leaderboard reward, or a trigger?).

Use the static defines in LootLockerStaticStrings.LootLockerNotificationSources know what possible values this can be

◆ SourceEnum

LootLockerNotificationSource LootLocker.Requests.LootLockerNotification.SourceEnum
getset

The originating source of this notification as an enum (for example, did it originate from a purchase, a leaderboard reward, or a trigger?).

Use the static defines in LootLockerStaticStrings.LootLockerNotificationSources know what possible values this can be