Exemplo n.º 1
0
 def __guard_buy_callback(self, client: LiveClient, command: dict):
     data = command['data']
     message = blivedm.GuardBuyMessage(
         uid=data['uid'],
         username=data['username'],
         guard_level=data['guard_level'],
         start_time=data['start_time'],
     )
     return self._on_buy_guard(client, message)
Exemplo n.º 2
0
 def __parse_buy_guard(self, command):
     data = command['data']
     return self._on_buy_guard(
         blivedm.GuardBuyMessage(data['uid'], data['username'],
                                 data['guard_level'], None, None, None,
                                 None, data['start_time'], None))