Beamable SDK
Public Member Functions | Protected Member Functions | Properties | List of all members
Beamable.Common.Api.Announcements.AbsAnnouncementsApi Class Referenceabstract
Inheritance diagram for Beamable.Common.Api.Announcements.AbsAnnouncementsApi:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Api.Announcements.AbsAnnouncementsApi:
Collaboration graph
[legend]

Public Member Functions

Promise< EmptyResponseMarkRead (string id)
 A Auth.User can have an inbox of AnnouncementView. When an announcement is created, it will be sent to all players, and will be "unread". This method will change the AnnouncementView.isRead field to true, and prevent the announcement from appearing as "new" to a Auth.User. However, the announcement is still in the player's inbox. More...
 
virtual Promise< EmptyResponseMarkRead (List< string > ids)
 A Auth.User can have an inbox of AnnouncementView. When an announcement is created, it will be sent to all players, and will be "unread". This method will change the AnnouncementView.isRead field to true for a given set of announcements, and prevent the announcements from appearing as "new" to a Auth.User. However, the announcement is still in the player's inbox. More...
 
Promise< EmptyResponseMarkDeleted (string id)
 A Auth.User can have an inbox of AnnouncementView. This method will permanently delete an announcement from the player's inbox so that they never see it again. Be careful!, an announcement may also have rewards for the player, but if the announcement is deleted before the rewards are claimed, then the rewards are lost. Use the Claim(string) method to make sure the rewards are granted before you delete a player's announcement. Use the AnnouncementView.isClaimed field to check if the announcement has been claimed. More...
 
virtual Promise< EmptyResponseMarkDeleted (List< string > ids)
 A Auth.User can have an inbox of AnnouncementView. This method will permanently delete a set of announcements from the player's inbox so that they never see them again. Be careful!, announcements may also have rewards for the player, but if announcements are deleted before the rewards are claimed, then the rewards are lost. Use the Claim(List<string>) method to make sure the rewards are granted before you delete player's announcements. Use the AnnouncementView.isClaimed field to check if the announcements have been claimed. More...
 
Promise< EmptyResponseClaim (string id)
 A Auth.User can have an inbox of AnnouncementView. Announcements can have rewards associated with them that the player can claim one time. These rewards are stored in the AnnouncementView.gift field, and some legacy rewards are visible in the AnnouncementView.attachments field. This method will grant the rewards to the player for one announcement. Once the rewards have been claimed, the AnnouncementView.isClaimed will be true. More...
 
virtual Promise< EmptyResponseClaim (List< string > ids)
 A Auth.User can have an inbox of AnnouncementView. Announcements can have rewards associated with them that the player can claim one time. These rewards are stored in the AnnouncementView.gift field, and some legacy rewards are visible in the AnnouncementView.attachments field. This method will grant the rewards to the player for a set of announcements. Once the rewards have been claimed, the AnnouncementView.isClaimed will be true. More...
 
abstract Promise< AnnouncementQueryResponseGetCurrent (string scope="")
 
- Public Member Functions inherited from Beamable.Common.Api.ISupportsGet< AnnouncementQueryResponse >
Promise< TData > GetCurrent (string scope="")
 Manually fetch the available data. If the server hasn't delivered a new update, this method will not return the absolute latest data unless you pass forceRefresh as true. More...
 

Protected Member Functions

 AbsAnnouncementsApi (IBeamableRequester requester, IUserContext ctx)
 

Properties

IBeamableRequester Requester [get]
 
IUserContext Ctx [get]
 

Member Function Documentation

◆ Claim() [1/2]

virtual Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.Claim ( List< string >  ids)
inlinevirtual

A Auth.User can have an inbox of AnnouncementView. Announcements can have rewards associated with them that the player can claim one time. These rewards are stored in the AnnouncementView.gift field, and some legacy rewards are visible in the AnnouncementView.attachments field. This method will grant the rewards to the player for a set of announcements. Once the rewards have been claimed, the AnnouncementView.isClaimed will be true.

Parameters
idsA set of ids from AnnouncementViews. These should be the AnnouncementView.id field values.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.

Reimplemented in Beamable.Api.Announcements.AnnouncementsService.

◆ Claim() [2/2]

Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.Claim ( string  id)
inline

A Auth.User can have an inbox of AnnouncementView. Announcements can have rewards associated with them that the player can claim one time. These rewards are stored in the AnnouncementView.gift field, and some legacy rewards are visible in the AnnouncementView.attachments field. This method will grant the rewards to the player for one announcement. Once the rewards have been claimed, the AnnouncementView.isClaimed will be true.

Parameters
idThe id of an AnnouncementView. This should be the AnnouncementView.id field.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.

◆ MarkDeleted() [1/2]

virtual Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.MarkDeleted ( List< string >  ids)
inlinevirtual

A Auth.User can have an inbox of AnnouncementView. This method will permanently delete a set of announcements from the player's inbox so that they never see them again. Be careful!, announcements may also have rewards for the player, but if announcements are deleted before the rewards are claimed, then the rewards are lost. Use the Claim(List<string>) method to make sure the rewards are granted before you delete player's announcements. Use the AnnouncementView.isClaimed field to check if the announcements have been claimed.

Parameters
idsA set of ids from AnnouncementViews. These should be the AnnouncementView.id field values.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.

Reimplemented in Beamable.Api.Announcements.AnnouncementsService.

◆ MarkDeleted() [2/2]

Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.MarkDeleted ( string  id)
inline

A Auth.User can have an inbox of AnnouncementView. This method will permanently delete an announcement from the player's inbox so that they never see it again. Be careful!, an announcement may also have rewards for the player, but if the announcement is deleted before the rewards are claimed, then the rewards are lost. Use the Claim(string) method to make sure the rewards are granted before you delete a player's announcement. Use the AnnouncementView.isClaimed field to check if the announcement has been claimed.

Parameters
idThe id of an AnnouncementView. This should be the AnnouncementView.id field.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.

◆ MarkRead() [1/2]

virtual Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.MarkRead ( List< string >  ids)
inlinevirtual

A Auth.User can have an inbox of AnnouncementView. When an announcement is created, it will be sent to all players, and will be "unread". This method will change the AnnouncementView.isRead field to true for a given set of announcements, and prevent the announcements from appearing as "new" to a Auth.User. However, the announcement is still in the player's inbox.

Parameters
idsA set of ids from AnnouncementViews. These should be the AnnouncementView.id field values.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.

Reimplemented in Beamable.Api.Announcements.AnnouncementsService.

◆ MarkRead() [2/2]

Promise< EmptyResponse > Beamable.Common.Api.Announcements.AbsAnnouncementsApi.MarkRead ( string  id)
inline

A Auth.User can have an inbox of AnnouncementView. When an announcement is created, it will be sent to all players, and will be "unread". This method will change the AnnouncementView.isRead field to true, and prevent the announcement from appearing as "new" to a Auth.User. However, the announcement is still in the player's inbox.

Parameters
idThe id of an AnnouncementView. This should be the AnnouncementView.id field.
Returns
An empty Promise representing the network call to Beamable.

Implements Beamable.Common.Api.Announcements.IAnnouncementsApi.


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