store gameId on user object

This commit is contained in:
Neto Becker
2015-10-15 11:41:18 -03:00
parent 3578178941
commit 0c5caefa9f
16 changed files with 24 additions and 16 deletions

View File

@@ -13,6 +13,7 @@ var User = (function () {
this.id = data.id;
this.avatar = data.avatar;
this.status = data.status || "offline";
this.gameId = data.game_id || null;
}
// access using user.avatarURL;
@@ -54,4 +55,4 @@ var User = (function () {
return User;
})();
module.exports = User;
module.exports = User;