forked from Hay1tsme/artemis
format with black
This commit is contained in:
@ -1,4 +1,9 @@
|
||||
from titles.diva.handlers.base import BaseRequest, BaseResponse, DivaRequestParseException
|
||||
from titles.diva.handlers.base import (
|
||||
BaseRequest,
|
||||
BaseResponse,
|
||||
DivaRequestParseException,
|
||||
)
|
||||
|
||||
|
||||
class PreStartRequest(BaseRequest):
|
||||
pmm: str
|
||||
@ -8,6 +13,7 @@ class PreStartRequest(BaseRequest):
|
||||
a_code: str
|
||||
aime_id: str
|
||||
aime_a_code: str
|
||||
|
||||
def __init__(self, raw: str) -> None:
|
||||
super().__init__(raw)
|
||||
try:
|
||||
@ -17,6 +23,7 @@ class PreStartRequest(BaseRequest):
|
||||
except AttributeError as e:
|
||||
raise DivaRequestParseException(f"PreStartRequest: {e}")
|
||||
|
||||
|
||||
class PreStartResponse(BaseResponse):
|
||||
player_name: str
|
||||
sort_kind: str
|
||||
@ -33,9 +40,10 @@ class PreStartResponse(BaseResponse):
|
||||
sldr_tch_se_eqp: str
|
||||
passwd_stat: str
|
||||
mdl_eqp_tm: str
|
||||
|
||||
def __init__(self, cmd_id: str, req_id: int, pd_id: int) -> None:
|
||||
super().__init__(cmd_id, req_id)
|
||||
self.ps_result = 1
|
||||
super().__init__(cmd_id, req_id)
|
||||
self.ps_result = 1
|
||||
self.pd_id = pd_id
|
||||
self.accept_idx = 100
|
||||
self.nblss_ltt_stts = -1
|
||||
@ -45,6 +53,7 @@ class PreStartResponse(BaseResponse):
|
||||
# But this is how it's stored in the db, so w/e for now
|
||||
self.mdl_eqp_ary = "-999,-999,-999"
|
||||
|
||||
|
||||
class StartRequest(BaseRequest):
|
||||
def __init__(self, raw: str) -> None:
|
||||
super().__init__(raw)
|
||||
@ -55,6 +64,7 @@ class StartRequest(BaseRequest):
|
||||
except AttributeError as e:
|
||||
raise DivaRequestParseException(f"StartRequest: {e}")
|
||||
|
||||
|
||||
class StartResponse(BaseResponse):
|
||||
def __init__(self, cmd_id: str, req_id: int) -> None:
|
||||
super().__init__(cmd_id, req_id)
|
||||
|
Reference in New Issue
Block a user