コード例 #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 TrackingEvents property.
 /// </summary>
 /// <param name="trackingEvents">TrackingEvents property.</param>
 /// <returns>this instance.</returns>
 public GetPackageTrackingDetailsResult WithTrackingEvents(TrackingEventList trackingEvents)
 {
     this._trackingEvents = trackingEvents;
     return(this);
 }