Skip to content

LocalStorage Subsystem

Evan Harvey edited this page Apr 25, 2016 · 1 revision

The local database is responsible for keeping track of a user's login token. Once a user has successfully logged into the remote database a token is generated, returned, and stored in the local database. The local database also stores the user's highscore, blockseed, and status. Lastly, the local database stores the user's friends list which allows the application to quickly retrieve a user's list of friends before contacting the remote database for the friends' blockseeds and high scores. SQLite was used to implemented the local database and upon first run of the application all required tables are created.

Entity relation diagram depicting the entities and their relations among one another