# Path: webservice/service_func.py
# class func_error(Exception):
# class service_func:
# class default_func(service_func):
#     def __init__(self, message):
#     def __str__(self):
#     def __init__(self, func_path):
#     def check_server_key(self, args, server):
#     def init(self):
#     def execute(self, args, server):
#     def answer(self):
#     def get_meta(self):
#     def __init__(self, functions):
#     def answer(self):


from ..service_func import service_func, func_error, meta_arg

class get_all_teams(service_func):
    def __init__(self):
        service_func.__init__(self, "/team/all")
        self.name = "Get all teams"
        self.description = "Get all teams with id for current Jeopardy"
        self.teams = []

    def execute(self, args, server):

# Path: webservice/service_func.py
# class func_error(Exception):
# class service_func:
# class default_func(service_func):
#     def __init__(self, message):
#     def __str__(self):
#     def __init__(self, func_path):
#     def check_server_key(self, args, server):
#     def init(self):
#     def execute(self, args, server):
#     def answer(self):
#     def get_meta(self):
#     def __init__(self, functions):
#     def answer(self):


# Path: webservice/funcs/get_all_teams.py
from ..service_func import service_func, func_error, meta_arg


class get_all_teams(service_func):
    def __init__(self):
        service_func.__init__(self, "/team/all")
        self.name = "Get all teams"
        self.description = "Get all teams with id for current Jeopardy"
        self.teams = []

    def execute(self, args, server):

        self.teams = server.game_data.teams