diva: fix start, spend_credit, and get_pv_pd requests

This commit is contained in:
2023-10-04 23:58:26 -04:00
parent f836b5dd21
commit 5e03193819
5 changed files with 101 additions and 98 deletions

View File

@ -8,15 +8,15 @@ from urllib import parse
from ..const import DivaConstants
class PreStartRequest(BaseRequest):
pmm: str
idm: str
mmgameid: str
mmuid: str
a_code: str
aime_id: str
aime_a_code: str
def __init__(self, raw: str) -> None:
self.pmm: str
self.idm: str
self.mmgameid: str
self.mmuid: str
self.a_code: str
self.aime_id: str
self.aime_a_code: str
super().__init__(raw)
try:
self.key_obj_type = int(self.key_obj_type)
@ -27,8 +27,6 @@ class PreStartRequest(BaseRequest):
class PreStartResponse(BaseResponse):
def __init__(self, cmd_id: str, req_id: int, pd_id: int) -> None:
super().__init__(cmd_id, req_id)
self.ps_result = 1