Exemple #1
0
        /// <summary>
        /// Returns the last event for each one of the tracking numbers specified.
        /// </summary>
        /// <param name="trackingNumbers"></param>
        /// <returns></returns>
        public static Dictionary <String, TrackingEvent> TrackLastEvent(String destinationCountry, IEnumerable <String> trackingNumbers)
        {
            IPostOfficeAgent agent = FindAgent(destinationCountry);

            return(agent.TrackLastEvent(trackingNumbers));
        }
Exemple #2
0
        /// <summary>
        /// Returns the most recent event for the given tracking number
        /// </summary>
        /// <param name="trackingNumber"></param>
        /// <returns></returns>
        public static TrackingEvent TrackLastEvent(String destinationCountry, String trackingNumber)
        {
            IPostOfficeAgent agent = FindAgent(destinationCountry);

            return(agent.TrackLastEvent(trackingNumber));
        }