§
   ÐVxCåÃ7ã                   ó:   — d Z ddlZddlmZ dZefd„Zd„ Zdd„ZdS )	zpThe server side of the remote game: the screen of this device and its commands (WEB server/sync/game-routes.ts).é    N)Úclienté   c                 ó^   — t          j        d| pdt          |¦  «        dœ|¦  «        d         S )zXThe game as this Kodi shows it; waits up to `wait` s while its version is still `after`.z	sync/gameÚ )ÚafterÚwaité   )r   ÚpollÚint)r   Úabortr   s      úb/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/games/remote/api.pyÚlistenr   
   s.   € åŒ;�{¨e¨k°rÅ3ÀtÁ9Ä9Ð$MÐ$MÈuÑUÔUÐVWÔXÐXó    c                  ó(   — t          dd„ d¬¦  «        S )Nr   c                  ó   — dS )NF© r   r   r   ú<lambda>zcurrent.<locals>.<lambda>   s   € ˜e€ r   r   )r   )r   r   r   r   Úcurrentr      s   € Ý�"�m�m¨!Ð,Ñ,Ô,Ð,r   c                 ó�   — | t          t          j        ¦   «         ¦  «        |dœ}|r||d<   t          j        dd|¦  «        d         S )znOne key of the contestant; returns the game after it (a stale `version` raises AccountError version_conflict).)ÚexpectedVersionÚ	requestIdÚactionÚanswerÚPOSTzsync/game/commandr	   )ÚstrÚuuidÚuuid4r   Úrequest)Úversionr   r   Úbodys       r   Úpressr!      sK   € à&µS½¼¹¼Ñ5FÔ5FÐRXÐYÐY€DØð  ØˆˆX‰ÝŒ>˜&Ð"5°tÑ<Ô<¸QÔ?Ð?r   )N)Ú__doc__r   Úwcs.accountr   ÚWAIT_Sr   r   r!   r   r   r   ú<module>r%      s{   ðà vÐ vØ €€€à Ð Ð Ð Ð Ð à	€ð %ð Yð Yð Yð Yð
-ð -ð -ð@ð @ð @ð @ð @ð @r   