Ignore:
Timestamp:
02/14/23 14:27:21 (15 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

New RPC call to query the SimBrief results (re #362)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/rpc.py

    r1069 r1074  
    752752                     for typeCode in reply.value["typeCodes"]]
    753753
    754             return (reply.value["name"], reply.value["rank"], types)
     754            return (reply.value["name"], reply.value["rank"], types,
     755                    self._sessionID)
    755756        else:
    756757            return None
     
    869870                                                            tailNumber))
    870871        return [BookedFlight(value) for value in values]
     872
     873    def getSimBriefResult(self, timestamp):
     874        """Get the SimBrief results for the given timestamp."""
     875        return self._performCall(lambda sessionID:
     876                                 self._server.getSimBriefResult(sessionID,
     877                                                                timestamp))
    871878
    872879    def _performCall(self, callFn, acceptResults = []):
Note: See TracChangeset for help on using the changeset viewer.