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

Description

Exposes methods allowing to fetch and modify the profile of the signed in gamer.

Public Member Functions

Promise< GamerProfileGet ()
 Method used to retrieve some optional data of the logged in profile previously set by method SetProfile. More...
 
Promise< GamerOutlineOutline ()
 Fetches an outline of the currently logged in user. Basically returns all available data about the user, including all domains he has been playing on. This can be used to avoid issuing multiple requests on startup (one for the profile, games, etc.). More...
 
Promise< DoneSet (Bundle data)
 Method used to associate some optional data to the logged in profile in a JSON dictionary. You can fill fields with keys "email", "displayName", "lang", "firstName", "lastName", "addr1", "addr2", "addr3" and "avatar". Other fields will be ignored. These fields must be strings, and some are pre-populated when the account is created, using the available info from the social network used to create the account. More...
 

Member Function Documentation

◆ Get()

Promise<GamerProfile> CotcSdk.GamerProfileMethods.Get ( )

Method used to retrieve some optional data of the logged in profile previously set by method SetProfile.

Returns
Promise resolved when the operation has completed.

◆ Outline()

Promise<GamerOutline> CotcSdk.GamerProfileMethods.Outline ( )

Fetches an outline of the currently logged in user. Basically returns all available data about the user, including all domains he has been playing on. This can be used to avoid issuing multiple requests on startup (one for the profile, games, etc.).

Non exhaustive list of fields include: network, networkid, networksecret, registerTime, registerBy, games (array), profile, devices (array), domains (array), serverTime.

Returns
Promise resolved when the operation has completed with the resulting outline.

◆ Set()

Promise<Done> CotcSdk.GamerProfileMethods.Set ( Bundle  data)

Method used to associate some optional data to the logged in profile in a JSON dictionary. You can fill fields with keys "email", "displayName", "lang", "firstName", "lastName", "addr1", "addr2", "addr3" and "avatar". Other fields will be ignored. These fields must be strings, and some are pre-populated when the account is created, using the available info from the social network used to create the account.

Returns
Promise resolved when the operation has completed.
Parameters
dataIs a Bundle holding the data to save for this user. The object can hold the whole profile or just a subset of the keys.