Esempio n. 1
0
 public static async Task <string> GetShipmentLastMessageAsync(string trackingCode, Implementation implementation)
 {
     if (implementation == Implementation.Correios)
     {
         return(await CorreiosImplementation.GetShipmentLastMessageAsync(trackingCode));
     }
     else
     {
         return("");
     }
 }
Esempio n. 2
0
 public static async Task <List <ForwardingEvent> > GetForwardingEventListAsync(string trackingCode, Implementation implementation)
 {
     if (implementation == Implementation.Correios)
     {
         return(await CorreiosImplementation.GetForwardingEventListAsync(trackingCode));
     }
     else
     {
         return(new List <ForwardingEvent>());
     }
 }
Esempio n. 3
0
 public static async Task <AwaitingForPickUpEvent> GetAwaitingForPickUpEventAsync(string trackingCode, Implementation implementation)
 {
     if (implementation == Implementation.Correios)
     {
         return(await CorreiosImplementation.GetAwaitingForPickUpEventAsync(trackingCode));
     }
     else
     {
         return(new AwaitingForPickUpEvent());
     }
 }
Esempio n. 4
0
 public static async Task <RejectedEvent> GetRejectedEventAsync(string trackingCode, Implementation implementation)
 {
     if (implementation == Implementation.Correios)
     {
         return(await CorreiosImplementation.GetRejectedEventAsync(trackingCode));
     }
     else
     {
         return(new RejectedEvent());
     }
 }
Esempio n. 5
0
 public static async Task <PostedEvent> GetPostedEventAsync(string trackingCode, Implementation implementation)
 {
     try
     {
         if (implementation == Implementation.Correios)
         {
             return(await CorreiosImplementation.GetPostedEventAsync(trackingCode));
         }
         else
         {
             return(new PostedEvent());
         }
     }
     catch (Exception e)
     {
         throw;
     }
 }