1
0
forked from Hay1tsme/artemis

let black do it's magic

This commit is contained in:
2023-03-09 11:38:58 -05:00
parent fa7206848c
commit a76bb94eb1
150 changed files with 8474 additions and 4843 deletions

View File

@ -2,12 +2,14 @@ from typing import Dict, List
from titles.wacca.handlers.base import BaseRequest, BaseResponse
from titles.wacca.handlers.helpers import VipLoginBonus
# --user/vip/get--
class UserVipGetRequest(BaseRequest):
def __init__(self, data: Dict) -> None:
super().__init__(data)
self.profileId = self.params[0]
class UserVipGetResponse(BaseResponse):
def __init__(self) -> None:
super().__init__()
@ -15,22 +17,16 @@ class UserVipGetResponse(BaseResponse):
self.unknown1: int = 1
self.unknown2: int = 1
self.presents: List[VipLoginBonus] = []
def make(self) -> Dict:
pres = []
for x in self.presents:
pres.append(x.make())
self.params = [
self.vipDays,
[
self.unknown1,
self.unknown2,
pres
]
]
self.params = [self.vipDays, [self.unknown1, self.unknown2, pres]]
return super().make()
# --user/vip/start--
class UserVipStartRequest(BaseRequest):
def __init__(self, data: Dict) -> None:
@ -39,6 +35,7 @@ class UserVipStartRequest(BaseRequest):
self.cost = self.params[1]
self.days = self.params[2]
class UserVipStartResponse(BaseResponse):
def __init__(self, expires: int = 0) -> None:
super().__init__()
@ -46,9 +43,6 @@ class UserVipStartResponse(BaseResponse):
self.presents = []
def make(self) -> Dict:
self.params = [
self.whenExpires,
self.presents
]
self.params = [self.whenExpires, self.presents]
return super().make()
return super().make()