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.")
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.")