{"size": 1629, "ext": "js", "max_stars_repo_path": "games/mobile-roulette/client/src/helpers/lobby.helper.js", "max_stars_repo_name": "ag-sbogd/mono-changelog", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "games/mobile-roulette/client/src/helpers/lobby.helper.js", "max_issues_repo_name": "ag-sbogd/mono-changelog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "games/mobile-roulette/client/src/helpers/lobby.helper.js", "max_forks_repo_name": "ag-sbogd/mono-changelog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0615384615, "max_line_length": 62, "alphanum_fraction": 0.6089625537}
const lobbyEnum = {
    GAMES:           'games',
    STERILIZEDGAMES: 'sterilizedGames',
    BASICGAMES:      'basicgames',
    CATEGORIES:      'categories',
    TABS:            'tabs',

    HELP_RULES_HTML:  'helpRulesHtml',
    HELP_RULES_ERROR: 'helpRulesError',
};
const lobbyMap = new Map();

const lobbyHelper = {
    // Setters
    setGames(games) {
        lobbyMap.set(lobbyEnum.GAMES, games);
        return this;
    },
    setLobbyTabs(tabs) {
        lobbyMap.set(lobbyEnum.TABS, tabs);
        return this;
    },
    setSterilizedGames(games) {
        lobbyMap.set(lobbyEnum.STERILIZEDGAMES, games);
        return this;
    },
    setBasicGames(games) {
        lobbyMap.set(lobbyEnum.BASICGAMES, games);
        return this;
    },
    setHelpRulesHtml(content) {
        lobbyMap.set(lobbyEnum.HELP_RULES_HTML, content);
        return this;
    },
    setHelpRulesError(content) {
        lobbyMap.set(lobbyEnum.HELP_RULES_ERROR, content);
        return this;
    },
    // Getters
    getGames() {
        return lobbyMap.get(lobbyEnum.GAMES);
    },
    getSterilizedGames(games) {
        return lobbyMap.get(lobbyEnum.STERILIZEDGAMES, games);
    },
    getBasicGames() {
        return lobbyMap.get(lobbyEnum.BASICGAMES) || [];
    },
    getGamesSize() {
        return lobbyMap.get(lobbyEnum.GAMES).length;
    },
    getLobbyTabs() {
        return lobbyMap.get(lobbyEnum.TABS);
    },
    getHelpRulesHtml() {
        return lobbyMap.get(lobbyEnum.HELP_RULES_HTML);
    },
    getHelpRulesError() {
        return lobbyMap.get(lobbyEnum.HELP_RULES_ERROR);
    },

};

export default lobbyHelper;
