mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
31 lines
720 B
C#
31 lines
720 B
C#
using System.Xml;
|
|
|
|
namespace TWC.I2.MsgEncode.ProcessingSteps
|
|
{
|
|
public class TransferIdMsgEncodeStep : IMsgEncodeStep
|
|
{
|
|
private string id;
|
|
|
|
public TransferIdMsgEncodeStep(string id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
public string Tag
|
|
{
|
|
get
|
|
{
|
|
return "TransferId";
|
|
}
|
|
}
|
|
|
|
public string Encode(string payloadFile, XmlElement descriptor)
|
|
{
|
|
XmlElement element = descriptor.OwnerDocument.CreateElement("Id");
|
|
element.InnerText = this.id;
|
|
descriptor.AppendChild((XmlNode)element);
|
|
return payloadFile;
|
|
}
|
|
}
|
|
}
|