CotC C# SDK for Unity  v1.4.0.1
Making social games is easy !
Public Member Functions | List of all members

Description

Allows to run batches authenticated as a user.

Public Member Functions

GamerBatches Domain (string domain)
 Changes the domain affected by the next operations. You should typically use it this way: gamer.Batches.Domain("private").Run(...); More...
 
Promise< BundleRun (string batchName, Bundle batchParams=null)
 Runs a batch on the server, authenticated as a gamer (gamer-scoped). More...
 

Member Function Documentation

◆ Domain()

GamerBatches CotcSdk.GamerBatches.Domain ( string  domain)

Changes the domain affected by the next operations. You should typically use it this way: gamer.Batches.Domain("private").Run(...);

Parameters
domainDomain on which to scope the next operations.
Returns
This object for operation chaining.

◆ Run()

Promise<Bundle> CotcSdk.GamerBatches.Run ( string  batchName,
Bundle  batchParams = null 
)

Runs a batch on the server, authenticated as a gamer (gamer-scoped).

Returns
Promise resolved when the operation has completed. The attached bundle is the JSON data returned by the batch.
Parameters
batchNameName of the batch to run, as configured on the server.
batchParamsParameters to be passed to the batch.