Exemplo n.º 1
0
Arquivo: scd.py Projeto: interuss/dss
 def entities_by_id(self) -> Dict[str, FetchedEntity]:
     entities = {
         k: fetch.coerce(v, FetchedEntity)
         for k, v in self.cached_entities_by_id.items()
     }
     for k, v in self.new_entities_by_id.items():
         entities[k] = fetch.coerce(v, FetchedEntity)
     return entities
Exemplo n.º 2
0
 def cached_entities_by_id(self) -> Dict[str, FetchedEntity]:
   return fetch.coerce(self['cached_uss_queries'], FetchedEntity)
Exemplo n.º 3
0
 def new_entities_by_id(self) -> Dict[str, FetchedEntity]:
   return fetch.coerce(self['uss_queries'].copy(), FetchedEntity)
Exemplo n.º 4
0
 def dss_query(self) -> FetchedEntityReferences:
   return fetch.coerce(self['dss_query'], FetchedEntityReferences)
Exemplo n.º 5
0
 def uss_flight_details_queries(self) -> Dict[str, FetchedUSSFlightDetails]:
     return {
         k: fetch.coerce(v, FetchedUSSFlightDetails)
         for k, v in self.get('uss_flight_details_queries', {}).items()
     }
Exemplo n.º 6
0
 def dss_isa_query(self) -> FetchedISAs:
     return fetch.coerce(self['dss_isa_query'], FetchedISAs)