Class Beamable
A class for wrapping Beamable's server interactions. Interacts with Beamable's API to retrieve and manipulate data on Beamable's servers
Assembly: cs.temp.dll.dll
Syntax
public class Beamable : IInjectable
Fields
_actionService
Declaration
protected IActionService _actionService
Field Value
Type |
Description |
IActionService |
|
_beamableAPI
Declaration
protected IBeamableAPI _beamableAPI
Field Value
Type |
Description |
IBeamableAPI |
|
_beamableSpecificTypes
Declaration
protected readonly Type[] _beamableSpecificTypes
Field Value
_connectionStatusService
Declaration
protected IConnectionStatusService _connectionStatusService
Field Value
_eventsService
Declaration
protected EventsService _eventsService
Field Value
Type |
Description |
EventsService |
|
_eventsSubscription
Declaration
protected PlatformSubscription<EventsGetResponse> _eventsSubscription
Field Value
Type |
Description |
PlatformSubscription<EventsGetResponse> |
|
_inventorySubscription
Declaration
protected PlatformSubscription<InventoryView> _inventorySubscription
Field Value
Type |
Description |
PlatformSubscription<InventoryView> |
|
_inventoryView
Declaration
protected InventoryView _inventoryView
Field Value
Type |
Description |
InventoryView |
|
_leaderboardService
Declaration
protected Beamable.Api.Leaderboard.LeaderboardService _leaderboardService
Field Value
Type |
Description |
Beamable.Api.Leaderboard.LeaderboardService |
|
_refreshingInventory
Declaration
protected bool _refreshingInventory
Field Value
DATA
Declaration
public const string DATA = "data"
Field Value
FORMATTED_CONTENT_ID
Declaration
protected const string FORMATTED_CONTENT_ID = "{0}.{1}"
Field Value
GLOBAL
Declaration
public const string GLOBAL = "global"
Field Value
ITEMS
Declaration
public const string ITEMS = "items"
Field Value
OnBeamableCallExecuted
Declaration
public Action<bool> OnBeamableCallExecuted
Field Value
Properties
BeamableAPI
Declaration
public virtual IBeamableAPI BeamableAPI { get; }
Property Value
Type |
Description |
IBeamableAPI |
|
BeamableSpecificTypes
Declaration
public virtual Type[] BeamableSpecificTypes { get; }
Property Value
EventsService
Declaration
public EventsService EventsService { get; }
Property Value
Type |
Description |
EventsService |
|
InventoryView
Declaration
public virtual InventoryView InventoryView { get; }
Property Value
Type |
Description |
InventoryView |
|
IsLoaded
Declaration
public virtual bool IsLoaded { get; }
Property Value
Methods
BeamableNetworkCallException(Exception)
Declaration
public void BeamableNetworkCallException(Exception e)
Parameters
Type |
Name |
Description |
Exception |
e |
|
CastToDataProvider(IContentObject)
Declaration
protected virtual IDataProvider CastToDataProvider(IContentObject content)
Parameters
Type |
Name |
Description |
IContentObject |
content |
|
Returns
Type |
Description |
IDataProvider |
|
Cleanup()
Declaration
public virtual void Cleanup()
CreateBeamableConsole()
Declaration
protected virtual void CreateBeamableConsole()
GetContent(String, String)
Declaration
public virtual Task<IContentObject[]> GetContent(string contentTag, string manifestId = "global")
Parameters
Returns
Type |
Description |
Task<IContentObject[]> |
|
GetContentTypePrefix<TType>()
Declaration
public virtual string GetContentTypePrefix<TType>()
where TType : IContentObject
Returns
Type Parameters
HandleEventUpdate(EventsGetResponse)
Declaration
protected virtual void HandleEventUpdate(EventsGetResponse eventsResponse)
Parameters
Type |
Name |
Description |
EventsGetResponse |
eventsResponse |
|
HandleInventoryUpdate(InventoryView)
Declaration
protected virtual void HandleInventoryUpdate(InventoryView inventoryView)
Parameters
Type |
Name |
Description |
InventoryView |
inventoryView |
|
Initialize(Action)
Declaration
public virtual Task Initialize(Action onComplete)
Parameters
Type |
Name |
Description |
Action |
onComplete |
|
Returns
Inject(IResolver)
Declaration
public virtual void Inject(IResolver resolver)
Parameters
Type |
Name |
Description |
IResolver |
resolver |
|
LoadContent<TContent>(String)
Declaration
protected virtual Task<IData> LoadContent<TContent>(string contentId)
where TContent : ContentObject, new()
Parameters
Type |
Name |
Description |
String |
contentId |
|
Returns
Type |
Description |
Task<IData> |
|
Type Parameters
Name |
Description |
TContent |
|
LoadContentData(String, Action<IDataProvider[]>)
Declaration
public virtual void LoadContentData(string contentTag, Action<IDataProvider[]> onComplete)
Parameters
Type |
Name |
Description |
String |
contentTag |
|
Action<IDataProvider[]> |
onComplete |
|
LoadContentDataAsync(String, Action<IDataProvider[]>)
Declaration
protected virtual Task LoadContentDataAsync(string contentTag, Action<IDataProvider[]> onComplete)
Parameters
Type |
Name |
Description |
String |
contentTag |
|
Action<IDataProvider[]> |
onComplete |
|
Returns
LoadContents<TContent>(String[])
Declaration
protected virtual Task<List<IData>> LoadContents<TContent>(string[] ids)
where TContent : ContentObject, new()
Parameters
Type |
Name |
Description |
String[] |
ids |
|
Returns
Type |
Description |
Task<List<IData>> |
|
Type Parameters
Name |
Description |
TContent |
|
LoadData(String[], String[], String[], Action<IData[]>)
Declaration
public virtual void LoadData(string[] currencyIds, string[] itemIds, string[] contentIds, Action<IData[]> onDataRetrieved)
Parameters
Type |
Name |
Description |
String[] |
currencyIds |
|
String[] |
itemIds |
|
String[] |
contentIds |
|
Action<IData[]> |
onDataRetrieved |
|
RefreshInventory(Action)
Declaration
public virtual void RefreshInventory(Action refreshInventoryCallback)
Parameters
Type |
Name |
Description |
Action |
refreshInventoryCallback |
|
RefreshInventoryAsync(Action)
Declaration
protected virtual Task RefreshInventoryAsync(Action onComplete)
Parameters
Type |
Name |
Description |
Action |
onComplete |
|
Returns
ResetUser()
Declaration
public virtual Task ResetUser()
Returns
UpdateInventory(InventoryUpdateBuilder)
Declaration
public Task UpdateInventory(InventoryUpdateBuilder inventoryUpdateBuilder)
Parameters
Type |
Name |
Description |
InventoryUpdateBuilder |
inventoryUpdateBuilder |
|
Returns