<reponame>Nikitolpl/IDM_mod_2_0<gh_stars>0
from vkbottle.framework.framework.handler.user import Handler
from module.framework.error_handler import ErrorHandler
from module.objects.events import Event
from vkbottle.api import UserApi


class Blueprint:
    def __init__(self, name: str = None, description: str = None):
        self.user_id: int = None
        self._name = name or "Unknown"
        self._description = description or "Unknown"

        # Sign assets
        self.api: UserApi = None
        self.on: Handler = Handler()
        self.event: Event = Event()
        self.error_handler: ErrorHandler = ErrorHandler()

    def create(self, api_instance: UserApi, user_id: int):
        self.api = api_instance
        self.user_id = user_id
from vkbottle.framework.framework.handler.user import Handler
from module.framework.error_handler import ErrorHandler
from module.objects.events import Event
from vkbottle.api import UserApi


class Blueprint:
    def __init__(self, name: str = None, description: str = None):
        self.user_id: int = None
        self._name = name or "Unknown"
        self._description = description or "Unknown"

        # Sign assets
        self.api: UserApi = None
        self.on: Handler = Handler()
        self.event: Event = Event()
        self.error_handler: ErrorHandler = ErrorHandler()

    def create(self, api_instance: UserApi, user_id: int):
        self.api = api_instance
        self.user_id = user_id
# Sign assets