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

Description

Generic result for an API call that has been successful and simply gives an indication of whether it was done properly or not. Usually the result should be true, but some operations may succeed and give an indication that nothing was done. You may use it as a boolean or get additional information by using it as a PropertiesObject.

Gamer.ChangeEmailAddress("a@localhost.localdomain").Then(done => {
// Call was performed successfully, but the address might not have been changed.
if (!done)
throw new YourException("Address not changed");
})
.Catch(ex => {
// Either the call has failed (ex is CotcException) or we caught YourException
// because the call did nothing.
});

Properties

bool Successful [get]
 
- Properties inherited from CotcSdk.PropertiesObject
Bundle this[string key] [get]
 Allows to query additional properties via an indexer (can be enriched via hooks). More...
 

Public Member Functions

 Done (Bundle serverData)
 
 Done (bool done, Bundle serverData)
 
- Public Member Functions inherited from CotcSdk.PropertiesObject
Bundle AsBundle ()
 Gets the underlying Bundle. Dangerous, only use internally, when you want to put the contents of a properties object into an existing bundle. More...
 
Dictionary< string, Bundle >.KeyCollection Keys ()
 Allows to browse all keys (might include some that are already exposed as typed properties in the object). More...
 
Dictionary< string, Bundle >.Enumerator GetEnumerator ()
 Allows to browse all keys (might include some that are already exposed as typed properties in the object). More...
 
override string ToString ()
 You may use this to debug what is inside this property object. More...
 
string ToJson ()
 Builds a JSON representation of this object, same as ToString actually. More...
 

Static Public Member Functions

static implicit operator bool (Done d)
 

Additional Inherited Members

- Protected Member Functions inherited from CotcSdk.PropertiesObject
 PropertiesObject (Bundle baseData)
 
- Protected Attributes inherited from CotcSdk.PropertiesObject
Bundle Props
 
Inheritance diagram for CotcSdk.Done:
CotcSdk.PropertiesObject