コード例 #1
0
        /// <summary>
        /// Returns all event history for each one of the tracking numbers specified.
        /// </summary>
        /// <param name="trackingNumbers"></param>
        /// <returns></returns>
        public static Dictionary <String, List <TrackingEvent> > TrackAllEvents(String destinationCountry, IEnumerable <String> trackingNumbers)
        {
            IPostOfficeAgent agent = FindAgent(destinationCountry);

            return(agent.TrackAllEvents(trackingNumbers));
        }
コード例 #2
0
        /// <summary>
        /// Returns all event history for the given tracking number
        /// </summary>
        /// <param name="trackingNumber"></param>
        /// <returns></returns>
        public static List <TrackingEvent> TrackAllEvents(String destinationCountry, String trackingNumber)
        {
            IPostOfficeAgent agent = FindAgent(destinationCountry);

            return(agent.TrackAllEvents(trackingNumber));
        }