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"); }
/// <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); }
/// <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); }
public override void ReadFragmentFrom(IMwsReader reader) { _eventDate = reader.Read <DateTime?>("EventDate"); _eventAddress = reader.Read <TrackingAddress>("EventAddress"); _eventCode = reader.Read <string>("EventCode"); }