Skip to content

JSON Room User Record Structure

Damon Getsman edited this page Mar 17, 2015 · 3 revisions

Just dumping it in here right now until I have a little motivation to do things more thoroughly.

NOTE: The following defaultSettings functionality is tucked under the room's code.

  roomRecords : {
        /*
         * summary:
         *      new defaults for new/undefined rooms
         */
    defaultSettings : function() {
        var settings = {
          moderator : null,
          infoCreationDate : null,
          info : []
        }
    }
  },
  userRoomSettings : {
        //this will include more than just zapped rooms for now, but we're
        //just going to handle that for the time being
        /*
         * summary:
         *      Empty for the filling
         */
        defaultSettings : function() {
                var roomList = {
                  zRooms : []
                }
        }
  },