Beamable SDK
Public Member Functions | Properties | List of all members
Beamable.Api.Announcements.AnnouncementsService Class Reference

This type defines the Client main entry point for the Announcements feature. More...

Inheritance diagram for Beamable.Api.Announcements.AnnouncementsService:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Announcements.AnnouncementsService:
Collaboration graph
[legend]

Public Member Functions

 AnnouncementsService (IPlatformService platform, IBeamableRequester requester, IDependencyProvider provider)
 
override 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...
 
override 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...
 
override 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...
 
override Promise< AnnouncementQueryResponseGetCurrent (string scope="")
 
- Public Member Functions inherited from Beamable.Common.Api.Announcements.AbsAnnouncementsApi
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...
 
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...
 
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...
 
- 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...
 

Properties

AnnouncementsSubscription Subscribable [get]
 
- Properties inherited from Beamable.Common.Api.Announcements.AbsAnnouncementsApi
IBeamableRequester Requester [get]
 
IUserContext Ctx [get]
 
- Properties inherited from Beamable.Api.IHasPlatformSubscriber< AnnouncementsSubscription, AnnouncementQueryResponse, AnnouncementQueryResponse >
TPlatformSubscriber Subscribable [get]
 Allows scopes to consume fresh data when available.
 

Additional Inherited Members

- Protected Member Functions inherited from Beamable.Common.Api.Announcements.AbsAnnouncementsApi
 AbsAnnouncementsApi (IBeamableRequester requester, IUserContext ctx)
 

Detailed Description

This type defines the Client main entry point for the Announcements feature.

Related Links

img beamable-logo

Member Function Documentation

◆ Claim()

override Promise< EmptyResponse > Beamable.Api.Announcements.AnnouncementsService.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.

Reimplemented from Beamable.Common.Api.Announcements.AbsAnnouncementsApi.

◆ GetCurrent()

override Promise< AnnouncementQueryResponse > Beamable.Api.Announcements.AnnouncementsService.GetCurrent ( string  scope = "")
virtual

◆ MarkDeleted()

override Promise< EmptyResponse > Beamable.Api.Announcements.AnnouncementsService.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.

Reimplemented from Beamable.Common.Api.Announcements.AbsAnnouncementsApi.

◆ MarkRead()

override Promise< EmptyResponse > Beamable.Api.Announcements.AnnouncementsService.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.

Reimplemented from Beamable.Common.Api.Announcements.AbsAnnouncementsApi.


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