Defines an object that can be queried for additional properties using indexers. The structure of the object remains read only though.
GamerInfo gamer = ...;
foreach (KeyValuePair<string, Bundle> pair in gamer) { ... }
foreach (string key in gamer.Keys()) { Debug.Log(gamer[key]); }
Usually these objects have a proper structure representing the predefined properties, and you can use the PropertiesObject methods to query additional properties that might have been enriched in a hook for instance.
Beware however, querying a PropertiesObject using keys will return directly what the server has responded. Thus, if you have modified a property and query its equivalent key, the values will differ. That is why we don't usually make PropertiesObjects publicly writable.
|
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...
|
|