Пример #1
0
 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
Пример #2
0
 def cached_entities_by_id(self) -> Dict[str, FetchedEntity]:
   return fetch.coerce(self['cached_uss_queries'], FetchedEntity)
Пример #3
0
 def new_entities_by_id(self) -> Dict[str, FetchedEntity]:
   return fetch.coerce(self['uss_queries'].copy(), FetchedEntity)
Пример #4
0
 def dss_query(self) -> FetchedEntityReferences:
   return fetch.coerce(self['dss_query'], FetchedEntityReferences)
Пример #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()
     }
Пример #6
0
 def dss_isa_query(self) -> FetchedISAs:
     return fetch.coerce(self['dss_isa_query'], FetchedISAs)