Beamable SDK
Public Member Functions | List of all members
Beamable.Server.Api.Notifications.IMicroserviceNotificationsApi Interface Reference

Microservice API for sending Notifications to clients. More...

Public Member Functions

Promise< EmptyResponseNotifyPlayer (long gamertag, string name, string messagePayload)
 Notifies the player with the given gamertag at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code. More...
 
Promise< EmptyResponseNotifyPlayer (List< long > gamertags, string name, string messagePayload)
 Notifies the players identified by the given gamertags at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code. More...
 
Promise< EmptyResponseNotifyPlayer< T > (long gamertag, string name, T messagePayload)
 Notifies the player with the given gamertag at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code. More...
 
Promise< EmptyResponseNotifyPlayer< T > (List< long > gamertags, string name, T messagePayload)
 Notifies the players identified by the given gamertags at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code. More...
 

Detailed Description

Microservice API for sending Notifications to clients.

Member Function Documentation

◆ NotifyPlayer() [1/2]

Promise< EmptyResponse > Beamable.Server.Api.Notifications.IMicroserviceNotificationsApi.NotifyPlayer ( List< long >  gamertags,
string  name,
string  messagePayload 
)

Notifies the players identified by the given gamertags at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code.

Parameters
gamertagsThe list of gamertags for the players you wish to notify.
nameThe context that player's client must be subscribed too to see the notification.
messagePayloadThe non-JSON string data to send along with the notification. Due to Beamable constraints, note that the string message will be sent with an outer "stringValue" field wrapping it.

◆ NotifyPlayer() [2/2]

Promise< EmptyResponse > Beamable.Server.Api.Notifications.IMicroserviceNotificationsApi.NotifyPlayer ( long  gamertag,
string  name,
string  messagePayload 
)

Notifies the player with the given gamertag at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code.

Parameters
gamertagThe gamertag for the player you wish to notify.
nameThe context that player's client must be subscribed too to see the notification.
messagePayloadThe non-JSON string data to send along with the notification. Due to Beamable constraints, note that the string message will be sent with an outer "stringValue" field wrapping it.

◆ NotifyPlayer< T >() [1/2]

Promise< EmptyResponse > Beamable.Server.Api.Notifications.IMicroserviceNotificationsApi.NotifyPlayer< T > ( List< long >  gamertags,
string  name,
messagePayload 
)

Notifies the players identified by the given gamertags at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code.

Parameters
gamertagsThe list of gamertags for the players you wish to notify.
nameThe context that player's client must be subscribed too to see the notification.
messagePayloadThe data to send along with the notification. Must be a JSON-serializable type.

◆ NotifyPlayer< T >() [2/2]

Promise< EmptyResponse > Beamable.Server.Api.Notifications.IMicroserviceNotificationsApi.NotifyPlayer< T > ( long  gamertag,
string  name,
messagePayload 
)

Notifies the player with the given gamertag at the given name . The name is the one you should subscribe to in your INotificationService.Subscribe<T> calls in the client-code.

Parameters
gamertagThe gamertag for the player you wish to notify.
nameThe context that player's client must be subscribed too to see the notification.
messagePayloadThe data to send along with the notification. Must be a JSON-serializable type.

The documentation for this interface was generated from the following file: