Esempio n. 1
0
 def check_for_client_id(blob):
     if "clientId" in blob:
         with mtga_watch_app.game_lock:
             if mtga_watch_app.player_id != blob['clientId']:
                 mtga_watch_app.player_id = blob['clientId']
                 mtga_logger.debug("got new clientId")
                 mtga_watch_app.save_settings()
Esempio n. 2
0
 def check_for_client_id(blob):
     if "authenticateResponse" in blob:
         if "clientId" in blob["authenticateResponse"]:
             with mtga_watch_app.game_lock:
                 if mtga_watch_app.player_id != blob[
                         "authenticateResponse"]['clientId']:
                     mtga_watch_app.player_id = blob[
                         "authenticateResponse"]['clientId']
                     mtga_logger.debug(
                         "{}check_for_client_id: got new clientId".format(
                             util.ld()))
                     mtga_watch_app.save_settings()
Esempio n. 3
0
 def check_for_client_id(blob):
     if "authenticateResponse" in blob:
         if "clientId" in blob["authenticateResponse"]:
             # screw it, no one else is going to use this message, mess up the timestamp, who cares
             with mtga_watch_app.game_lock:
                 if mtga_watch_app.player_id != blob[
                         "authenticateResponse"]['clientId']:
                     mtga_watch_app.player_id = blob[
                         "authenticateResponse"]['clientId']
                     mtga_logger.debug(
                         "{}check_for_client_id: got new clientId".format(
                             util.ld()))
                     mtga_watch_app.save_settings()
             general_output_queue.put(
                 {"authenticateResponse": blob["authenticateResponse"]})