Reorganize for classes to access each other
This commit is contained in:
@@ -1,17 +1,6 @@
|
|||||||
from typing import Optional, List, Dict, Any
|
from typing import Optional, List, Dict, Any
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
class ActiveClient:
|
|
||||||
"""
|
|
||||||
The active client model in memory for quicker access
|
|
||||||
"""
|
|
||||||
websocket = None
|
|
||||||
active_token: DiscordId = None
|
|
||||||
|
|
||||||
def __init__(self, websocket= None, active_token:DiscordId=None):
|
|
||||||
self.active_token = active_token
|
|
||||||
self.websocket = websocket
|
|
||||||
|
|
||||||
class DemodTypes(str, Enum):
|
class DemodTypes(str, Enum):
|
||||||
P25 = "P25"
|
P25 = "P25"
|
||||||
DMR = "DMR"
|
DMR = "DMR"
|
||||||
@@ -189,3 +178,15 @@ class System:
|
|||||||
tags=data.get("tags", None),
|
tags=data.get("tags", None),
|
||||||
whitelist=data.get("whitelist", None)
|
whitelist=data.get("whitelist", None)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class ActiveClient:
|
||||||
|
"""
|
||||||
|
The active client model in memory for quicker access
|
||||||
|
"""
|
||||||
|
websocket = None
|
||||||
|
active_token: DiscordId = None
|
||||||
|
|
||||||
|
def __init__(self, websocket= None, active_token:DiscordId=None):
|
||||||
|
self.active_token = active_token
|
||||||
|
self.websocket = websocket
|
||||||
Reference in New Issue
Block a user