File: Games\GamesByEmail.js

GamesByEmail
Class Info

Object
  
 
 
GamesByEmail.Info

All Implemented Interfaces:

Class


GamesByEmail.Info

implements Foundation.Class

A generic repository for key value pairs. Used to save state data in the game and team, and preferences for the player.

See Also:

GamesByEmail.Game.info, GamesByEmail.Team.info, GamesByEmail.Player.info

Constructor Summary
GamesByEmail.Info()

Method Summary
voidclear()
Clears all values from the respository.
 dispose()
VariantgetValue(/*String*/ key, /*Variant*/ defaultValue)
Gets a value from the respository.
voidsetValue(/*String*/ key, /*Variant*/ value)
Sets a value in the respository.

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

Info

GamesByEmail.Info()

Method Detail

clear

void clear()

Clears all values from the respository.


dispose

dispose()
Overrides:
dispose in class Class

getValue

Variant getValue(/*String*/ key,
                 /*Variant*/ defaultValue)

Gets a value from the respository.

Parameters:
key - 
The key of the value to get.
defaultValue - 
If the value is not in the repository, this value is returned. If the value does exists, it is cast to the same type as defaultValue.
Returns:
The value.

setValue

void setValue(/*String*/ key,
              /*Variant*/ value)

Sets a value in the respository.

Parameters:
key - 
The key of the value to set.
value - 
The value to set.