Beamable SDK
Public Member Functions | List of all members
Beamable.Common.Api.BeamableGetApiResourceViaPost< ScopedRsp > Class Template Reference

Helper class that can be used to make continuous Method.POST requests in order to keep some cached data somewhere. More...

Inheritance diagram for Beamable.Common.Api.BeamableGetApiResourceViaPost< ScopedRsp >:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Api.BeamableGetApiResourceViaPost< ScopedRsp >:
Collaboration graph
[legend]

Public Member Functions

 BeamableGetApiResourceViaPost (bool useCache=false, Func< string, ScopedRsp > offlineResponseGenerator=null)
 
override async Promise< ScopedRsp > RequestData (IBeamableRequester requester, string url)
 
override string CreateRefreshUrl (IUserContext ctx, string serviceName, string scope)
 Builds a Method.POST request's body for the given scope and caches it in ScopesToBodyMap. More...
 
- Public Member Functions inherited from Beamable.Common.Api.BeamableGetApiResource< ScopedRsp >
 BeamableGetApiResource (bool useCache=false)
 
Promise< ScopedRsp > RequestData (IBeamableRequester requester, IUserContext ctx, string serviceName, string scope)
 

Detailed Description

Helper class that can be used to make continuous Method.POST requests in order to keep some cached data somewhere.

Template Parameters
ScopedRspThe response type of the Post Request.

Member Function Documentation

◆ CreateRefreshUrl()

override string Beamable.Common.Api.BeamableGetApiResourceViaPost< ScopedRsp >.CreateRefreshUrl ( IUserContext  ctx,
string  serviceName,
string  scope 
)
inlinevirtual

Builds a Method.POST request's body for the given scope and caches it in ScopesToBodyMap.

Parameters
scopeA ","-separated string with all item types or ids that we want to get OR an empty string. Null is not supported.

Reimplemented from Beamable.Common.Api.BeamableGetApiResource< ScopedRsp >.

◆ RequestData()

override async Promise< ScopedRsp > Beamable.Common.Api.BeamableGetApiResourceViaPost< ScopedRsp >.RequestData ( IBeamableRequester  requester,
string  url 
)
inlinevirtual

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