Beamable SDK
Public Member Functions | Protected Member Functions | List of all members
Beamable.Api.Inventory.InventorySubscription Class Reference

This type defines the reset/refresh of related data. More...

Inheritance diagram for Beamable.Api.Inventory.InventorySubscription:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Api.Inventory.InventorySubscription:
Collaboration graph
[legend]

Public Member Functions

 InventorySubscription (IDependencyProvider provider)
 
InventoryView GetCurrentView ()
 
- Public Member Functions inherited from Beamable.Api.PlatformSubscribable< InventoryResponse, InventoryView >
PlatformSubscription< Data > Subscribe (Action< Data > callback)
 Subscribe to the callback to receive fresh data when available. More...
 
virtual PlatformSubscription< Data > Subscribe (string scope, Action< Data > callback)
 Subscribe to the callback to receive fresh data when available. More...
 
Promise< UnitRefresh ()
 Manually refresh the available data. More...
 
Data GetLatest ()
 
Data GetLatest (string scope)
 
async Promise< ScopedRsp > Fetch (string scope="")
 Send a request and get the latest state of the subscription. This method will not trigger existing subscriptions More...
 
Promise< Data > 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...
 
void Notify (Data data)
 Manually notify observing scopes regarding the available data. More...
 
void Notify (string scope, Data data)
 Manually notify observing scopes regarding the available data. More...
 

Protected Member Functions

override void Reset ()
 
override Promise OnRefresh (InventoryResponse data, string[] scopes)
 
- Protected Member Functions inherited from Beamable.Api.PlatformSubscribable< InventoryResponse, InventoryView >
 PlatformSubscribable (IDependencyProvider provider, string service, BeamableGetApiResource< ScopedRsp > getter=null)
 
Promise< UnitRefresh (string scope)
 Manually refresh the available data. More...
 
virtual Promise OnRefreshScope (string scope)
 
virtual Promise< ScopedRsp > ExecuteRequest (IBeamableRequester requester, string url)
 
virtual string CreateRefreshUrl (string scope)
 
virtual void OnRefresh (ScopedRsp data)
 
virtual Promise OnRefresh (ScopedRsp data, string[] scopes)
 
void ScheduleRefresh (long seconds, string scope)
 
void Unsubscribe (string scope, PlatformSubscription< Data > subscription)
 

Additional Inherited Members

- Protected Attributes inherited from Beamable.Api.PlatformSubscribable< InventoryResponse, InventoryView >
IBeamableRequester requester
 
IConnectivityService connectivityService
 
INotificationService notificationService
 
CoroutineService coroutineService
 
IUserContext userContext
 
BeamableGetApiResource< ScopedRsp > getter
 
readonly string service
 
- Properties inherited from Beamable.Api.PlatformSubscribable< InventoryResponse, InventoryView >
bool UsesHierarchyScopes [getprotected set]
 

Detailed Description

This type defines the reset/refresh of related data.

Related Links

img beamable-logo

Scopes are content ids!!

Member Function Documentation

◆ Reset()

override void Beamable.Api.Inventory.InventorySubscription.Reset ( )
inlineprotectedvirtual

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