(
self,
roleId: str,
serverId: Optional[str] = None,
game_id: int = WAVES_GAME_ID,
)
| 49 | return _temp >= 200000000 |
| 50 | |
| 51 | def get_server_id( |
| 52 | self, |
| 53 | roleId: str, |
| 54 | serverId: Optional[str] = None, |
| 55 | game_id: int = WAVES_GAME_ID, |
| 56 | ) -> str: |
| 57 | if serverId: |
| 58 | return serverId |
| 59 | if game_id == WAVES_GAME_ID: |
| 60 | if self.is_net(roleId): |
| 61 | return SERVER_ID_NET |
| 62 | return SERVER_ID |
| 63 | return "" |
| 64 | |
| 65 | async def refresh_bat_token(self, waves_user: WavesUser): |
| 66 | success, access_token = await self.get_request_token( |
no test coverage detected