} // end of unmarshal method ///<summary> ///This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. ///This will be modified in the future to provide a better display. Usage: ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); ///where pdu is an object representing a single pdu and sb is a StringBuilder. ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality ///</summary> new public void reflection(StringBuilder sb) { sb.Append("<ResupplyOfferPdu>" + System.Environment.NewLine); base.reflection(sb); try { sb.Append("<receivingEntityID>" + System.Environment.NewLine); _receivingEntityID.reflection(sb); sb.Append("</receivingEntityID>" + System.Environment.NewLine); sb.Append("<supplyingEntityID>" + System.Environment.NewLine); _supplyingEntityID.reflection(sb); sb.Append("</supplyingEntityID>" + System.Environment.NewLine); sb.Append("<supplies type=\"byte\">" + _supplies.Count.ToString() + "</supplies> " + System.Environment.NewLine); sb.Append("<padding1 type=\"short\">" + _padding1.ToString() + "</padding1> " + System.Environment.NewLine); sb.Append("<padding2 type=\"byte\">" + _padding2.ToString() + "</padding2> " + System.Environment.NewLine); for (int idx = 0; idx < _supplies.Count; idx++) { sb.Append("<supplies" + idx.ToString() + " type=\"SupplyQuantity\">" + System.Environment.NewLine); SupplyQuantity aSupplyQuantity = (SupplyQuantity)_supplies[idx]; aSupplyQuantity.reflection(sb); sb.Append("</supplies" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</ResupplyOfferPdu>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method
} // end of unmarshal method ///<summary> ///This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. ///This will be modified in the future to provide a better display. Usage: ///pdu.GetType().InvokeMember("reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); ///where pdu is an object representing a single pdu and sb is a StringBuilder. ///Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality ///</summary> new public void reflection(StringBuilder sb) { sb.Append("<ServiceRequestPdu>" + System.Environment.NewLine); base.reflection(sb); try { sb.Append("<requestingEntityID>" + System.Environment.NewLine); _requestingEntityID.reflection(sb); sb.Append("</requestingEntityID>" + System.Environment.NewLine); sb.Append("<servicingEntityID>" + System.Environment.NewLine); _servicingEntityID.reflection(sb); sb.Append("</servicingEntityID>" + System.Environment.NewLine); sb.Append("<serviceTypeRequested type=\"byte\">" + _serviceTypeRequested.ToString() + "</serviceTypeRequested> " + System.Environment.NewLine); sb.Append("<supplies type=\"byte\">" + _supplies.Count.ToString() + "</supplies> " + System.Environment.NewLine); sb.Append("<serviceRequestPadding type=\"short\">" + _serviceRequestPadding.ToString() + "</serviceRequestPadding> " + System.Environment.NewLine); for (int idx = 0; idx < _supplies.Count; idx++) { sb.Append("<supplies" + idx.ToString() + " type=\"SupplyQuantity\">" + System.Environment.NewLine); SupplyQuantity aSupplyQuantity = (SupplyQuantity)_supplies[idx]; aSupplyQuantity.reflection(sb); sb.Append("</supplies" + idx.ToString() + ">" + System.Environment.NewLine); } // end of list marshalling sb.Append("</ServiceRequestPdu>" + System.Environment.NewLine); } // end try catch (Exception e) { Trace.WriteLine(e); Trace.Flush(); } } // end of marshal method