コード例 #1
0
 def archive_session(self):
     command = AdvanceGenerationCommand()
     command.set_advance_generation(False)
     response = self._client.run_command(command)
     if not response.result["acknowledged"]:
         raise NetworkProtocolException("Couldn't archive session.")
コード例 #2
0
 def advance_generation(self) -> AdvanceGenerationCommand:
     command = AdvanceGenerationCommand()
     command.set_advance_generation(True)
     response = self._client.run_command(command)
     if not response.result["acknowledged"]:
         raise NetworkProtocolException("Couldn't advance generation.")