"""
    Session should be decoded by page then
    followed by _board
"""
from Util.Route import Routes


class BoardSessions:
    configRouteAction = Routes.getRouteAction(Routes.Config_Game)
    gameRouteAction = Routes.getRouteAction(Routes.Game_Url)
    KEYS = {
        configRouteAction: configRouteAction + '_board',
        gameRouteAction: gameRouteAction + '_board'
    }

    def __init__(self):
        pass

    @staticmethod
    def getBoardSession(url: str) -> str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]

        return ''


6fa32c8231ac9e93bb5db918b4e6d3e607301b9e
<mask token>


class BoardSessions:
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    @staticmethod
    def getBoardSession(url: str) ->str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]
        return ''

<mask token>


class BoardSessions:
    <mask token>
    <mask token>
    <mask token>

    def __init__(self):
        pass

    @staticmethod
    def getBoardSession(url: str) ->str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]
        return ''

<mask token>


class BoardSessions:
    configRouteAction = Routes.getRouteAction(Routes.Config_Game)
    gameRouteAction = Routes.getRouteAction(Routes.Game_Url)
    KEYS = {configRouteAction: configRouteAction + '_board',
        gameRouteAction: gameRouteAction + '_board'}

    def __init__(self):
        pass

    @staticmethod
    def getBoardSession(url: str) ->str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]
        return ''

<mask token>
from Util.Route import Routes


class BoardSessions:
    configRouteAction = Routes.getRouteAction(Routes.Config_Game)
    gameRouteAction = Routes.getRouteAction(Routes.Game_Url)
    KEYS = {configRouteAction: configRouteAction + '_board',
        gameRouteAction: gameRouteAction + '_board'}

    def __init__(self):
        pass

    @staticmethod
    def getBoardSession(url: str) ->str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]
        return ''

"""
    Session should be decoded by page then
    followed by _board
"""
from Util.Route import Routes


class BoardSessions:
    configRouteAction = Routes.getRouteAction(Routes.Config_Game)
    gameRouteAction = Routes.getRouteAction(Routes.Game_Url)
    KEYS = {
        configRouteAction: configRouteAction + '_board',
        gameRouteAction: gameRouteAction + '_board'
    }

    def __init__(self):
        pass

    @staticmethod
    def getBoardSession(url: str) -> str:
        page_action = url.rsplit('/', 1)[-1]
        if page_action in BoardSessions.KEYS:
            return BoardSessions.KEYS[page_action]

        return ''

