events started
This commit is contained in:
@@ -80,6 +80,10 @@ class Event:
|
||||
return static_response.first
|
||||
return None
|
||||
|
||||
@property
|
||||
def static_key(self):
|
||||
return self.STATICS
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
return f"This is an event of {self.name}. Description: {self.DESCRIPTION}"
|
||||
@@ -186,6 +190,7 @@ class CategoryCluster:
|
||||
ENDPOINTS: dict[str, MethodToEvent] # {"MethodToEvent": MethodToEvent, ...}
|
||||
SUBCATEGORY: Optional[List["CategoryCluster"]] # [CategoryCluster, ...]
|
||||
INCLUDE_IN_SCHEMA: Optional[bool] = True
|
||||
IS_CLIENT: Optional[bool] = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -197,6 +202,7 @@ class CategoryCluster:
|
||||
sub_category: list,
|
||||
pageinfo: Optional[PageInfo] = None,
|
||||
include_in_schema: Optional[bool] = True,
|
||||
is_client: Optional[bool] = False,
|
||||
):
|
||||
self.NAME = name
|
||||
self.TAGS = tags
|
||||
@@ -206,6 +212,11 @@ class CategoryCluster:
|
||||
self.ENDPOINTS = endpoints or {}
|
||||
self.SUBCATEGORY = sub_category or []
|
||||
self.INCLUDE_IN_SCHEMA = include_in_schema
|
||||
self.IS_CLIENT = is_client
|
||||
|
||||
@property
|
||||
def is_client(self):
|
||||
return self.IS_CLIENT
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
||||
Reference in New Issue
Block a user