예제 #1
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _packageNumber          = reader.Read <decimal>("PackageNumber");
     _trackingNumber         = reader.Read <string>("TrackingNumber");
     _carrierCode            = reader.Read <string>("CarrierCode");
     _carrierPhoneNumber     = reader.Read <string>("CarrierPhoneNumber");
     _carrierURL             = reader.Read <string>("CarrierURL");
     _shipDate               = reader.Read <DateTime?>("ShipDate");
     _estimatedArrivalDate   = reader.Read <DateTime?>("EstimatedArrivalDate");
     _shipToAddress          = reader.Read <TrackingAddress>("ShipToAddress");
     _currentStatus          = reader.Read <string>("CurrentStatus");
     _signedForBy            = reader.Read <string>("SignedForBy");
     _additionalLocationInfo = reader.Read <string>("AdditionalLocationInfo");
     _trackingEvents         = reader.Read <TrackingEventList>("TrackingEvents");
 }
예제 #2
0
 /// <summary>
 /// Sets the EventAddress property.
 /// </summary>
 /// <param name="eventAddress">EventAddress property.</param>
 /// <returns>this instance.</returns>
 public TrackingEvent WithEventAddress(TrackingAddress eventAddress)
 {
     this._eventAddress = eventAddress;
     return(this);
 }
예제 #3
0
 /// <summary>
 /// Sets the ShipToAddress property.
 /// </summary>
 /// <param name="shipToAddress">ShipToAddress property.</param>
 /// <returns>this instance.</returns>
 public GetPackageTrackingDetailsResult WithShipToAddress(TrackingAddress shipToAddress)
 {
     this._shipToAddress = shipToAddress;
     return(this);
 }
예제 #4
0
 public override void ReadFragmentFrom(IMwsReader reader)
 {
     _eventDate    = reader.Read <DateTime?>("EventDate");
     _eventAddress = reader.Read <TrackingAddress>("EventAddress");
     _eventCode    = reader.Read <string>("EventCode");
 }