![]() |
CotC C# SDK for Unity
v1.4.0.1
Making social games is easy !
|
Exposes methods allowing to fetch and modify the profile of the signed in gamer.
Public Member Functions | |
Promise< GamerProfile > | Get () |
Method used to retrieve some optional data of the logged in profile previously set by method SetProfile. More... | |
Promise< GamerOutline > | 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.). More... | |
Promise< Done > | 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. More... | |
Promise<GamerProfile> CotcSdk.GamerProfileMethods.Get | ( | ) |
Method used to retrieve some optional data of the logged in profile previously set by method SetProfile.
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
.
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.
data | Is a Bundle holding the data to save for this user. The object can hold the whole profile or just a subset of the keys. |