public override void WriteObject(XmlWriter writer, object graph) { MeasurementContract MeasurementContractField = ((MeasurementContract)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "light", false, true, MeasurementContractField.light)) { writer.WriteString(XmlConvert.ToString(MeasurementContractField.light)); writer.WriteEndElement(); } if (WriteChildElement(writer, "moisture", false, true, MeasurementContractField.moisture)) { writer.WriteString(XmlConvert.ToString(MeasurementContractField.moisture)); writer.WriteEndElement(); } if (WriteChildElement(writer, "temperature", false, true, MeasurementContractField.temperature)) { writer.WriteString(XmlConvert.ToString(MeasurementContractField.temperature)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { keepAlive keepAliveField = ((keepAlive)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "myMacAddress", true, false, keepAliveField.myMacAddress)) { writer.WriteString(keepAliveField.myMacAddress); writer.WriteEndElement(); } if (WriteChildElement(writer, "mycurrentTime", false, false, keepAliveField.mycurrentTime)) { writer.WriteString(XmlConvert.ToString(keepAliveField.mycurrentTime)); writer.WriteEndElement(); } if (WriteChildElement(writer, "port", false, false, keepAliveField.port)) { writer.WriteString(XmlConvert.ToString(keepAliveField.port)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { Measurement MeasurementField = ((Measurement)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "Light", false, false, MeasurementField.Light)) { writer.WriteString(XmlConvert.ToString(MeasurementField.Light)); writer.WriteEndElement(); } if (WriteChildElement(writer, "Moisture", false, false, MeasurementField.Moisture)) { writer.WriteString(XmlConvert.ToString(MeasurementField.Moisture)); writer.WriteEndElement(); } if (WriteChildElement(writer, "Temperature", false, false, MeasurementField.Temperature)) { writer.WriteString(XmlConvert.ToString(MeasurementField.Temperature)); writer.WriteEndElement(); } if (WriteChildElement(writer, "Time", false, false, MeasurementField.Time)) { writer.WriteString(XmlConvert.ToString(MeasurementField.Time)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { AddressResponse AddressResponseField = ((AddressResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "address", true, false, AddressResponseField.address)) { writer.WriteString(AddressResponseField.address); writer.WriteEndElement(); } if (WriteChildElement(writer, "port", true, false, AddressResponseField.port)) { writer.WriteString(AddressResponseField.port); writer.WriteEndElement(); } if (WriteChildElement(writer, "serverTime", false, false, AddressResponseField.serverTime)) { writer.WriteString(XmlConvert.ToString(AddressResponseField.serverTime)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { GetData GetDataField = ((GetData)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "value", false, false, GetDataField.value)) { writer.WriteString(XmlConvert.ToString(GetDataField.value)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { isValidResponse isValidResponseField = ((isValidResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "isValidResult", false, false, isValidResponseField.isValidResult)) { writer.WriteString(XmlConvert.ToString(isValidResponseField.isValidResult)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { IntegerEventRequest IntegerEventRequestField = ((IntegerEventRequest)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, IntegerEventRequestField.AnyAttr); if (WriteChildElement(writer, "Param", true, true, IntegerEventRequestField.Param)) { writer.WriteString(XmlConvert.ToString(IntegerEventRequestField.Param)); writer.WriteEndElement(); } WriteAnyElement(writer, IntegerEventRequestField.Any, false); writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { TwoWayResponse TwoWayResponseField = ((TwoWayResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, TwoWayResponseField.AnyAttr); if (WriteChildElement(writer, "Sum", true, true, TwoWayResponseField.Sum)) { writer.WriteString(XmlConvert.ToString(TwoWayResponseField.Sum)); writer.WriteEndElement(); } WriteAnyElement(writer, TwoWayResponseField.Any, false); writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { OneWay OneWayField = ((OneWay)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, OneWayField.AnyAttr); if (WriteChildElement(writer, "Param", false, true, OneWayField.Param)) { writer.WriteString(XmlConvert.ToString(OneWayField.Param)); writer.WriteEndElement(); } WriteAnyElement(writer, OneWayField.Any, false); writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { TypeCheckResponse TypeCheckResponseField = ((TypeCheckResponse)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, TypeCheckResponseField.AnyAttr); if (WriteChildElement(writer, "BoolCheck", false, true, TypeCheckResponseField.BoolCheck)) { writer.WriteString(XmlConvert.ToString(TypeCheckResponseField.BoolCheck)); writer.WriteEndElement(); } if (WriteChildElement(writer, "DecimalCheck", false, true, TypeCheckResponseField.DecimalCheck)) { writer.WriteString(TypeCheckResponseField.DecimalCheck); writer.WriteEndElement(); } if (WriteChildElement(writer, "FloatCheck", false, true, TypeCheckResponseField.FloatCheck)) { writer.WriteString(XmlConvert.ToString(TypeCheckResponseField.FloatCheck)); writer.WriteEndElement(); } if (WriteChildElement(writer, "UriListCheck", false, true, TypeCheckResponseField.UriListCheck)) { string tempList = ""; int i; for (i = 0; (i < TypeCheckResponseField.UriListCheck.Length); i = (i + 1)) { tempList = (tempList + TypeCheckResponseField.UriListCheck[i]); if ((i < (TypeCheckResponseField.UriListCheck.Length - 1))) { tempList = (tempList + " "); } } writer.WriteString(tempList); writer.WriteEndElement(); } WriteAnyElement(writer, TypeCheckResponseField.Any, false); writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { FileInfo FileInfoField = ((FileInfo)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "Name", true, false, FileInfoField.Name)) { writer.WriteString(FileInfoField.Name); writer.WriteEndElement(); } if (WriteChildElement(writer, "Size", false, false, FileInfoField.Size)) { writer.WriteString(XmlConvert.ToString(FileInfoField.Size)); writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { isValid isValidField = ((isValid)(graph)); if (WriteParentElement(writer, true, true, graph)) { if (WriteChildElement(writer, "mac", true, false, isValidField.mac)) { writer.WriteString(isValidField.mac); writer.WriteEndElement(); } if (WriteChildElement(writer, "pin", true, false, isValidField.pin)) { string pin_List = ""; if (this._CompressByteArrays) { if ((isValidField.pin != null)) { pin_List = Convert.ToBase64String(isValidField.pin); } writer.WriteString(pin_List); } else { for (int i = 0; (i < isValidField.pin.Length); i = (i + 1)) { pin_List = (pin_List + XmlConvert.ToString(isValidField.pin[i])); if ((i < (isValidField.pin.Length - 1))) { pin_List = (pin_List + " "); } } writer.WriteString(pin_List); } writer.WriteEndElement(); } writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { TwoWayRequest TwoWayRequestField = ((TwoWayRequest)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, TwoWayRequestField.AnyAttr); if (WriteChildElement(writer, "X", false, true, TwoWayRequestField.X)) { writer.WriteString(XmlConvert.ToString(TwoWayRequestField.X)); writer.WriteEndElement(); } if (WriteChildElement(writer, "Y", false, true, TwoWayRequestField.Y)) { writer.WriteString(XmlConvert.ToString(TwoWayRequestField.Y)); writer.WriteEndElement(); } WriteAnyElement(writer, TwoWayRequestField.Any, false); writer.WriteEndElement(); } return; }
public override void WriteObject(XmlWriter writer, object graph) { SimpleEventRequest SimpleEventRequestField = ((SimpleEventRequest)(graph)); if (WriteParentElement(writer, true, true, graph)) { WriteAnyAttribute(writer, SimpleEventRequestField.AnyAttr); if (WriteChildElement(writer, "Param", true, true, SimpleEventRequestField.Param)) { string Param_List = ""; if (this._CompressByteArrays) { if ((SimpleEventRequestField.Param != null)) { Param_List = Convert.ToBase64String(SimpleEventRequestField.Param); } writer.WriteString(Param_List); } else { for (int i = 0; (i < SimpleEventRequestField.Param.Length); i = (i + 1)) { Param_List = (Param_List + XmlConvert.ToString(SimpleEventRequestField.Param[i])); if ((i < (SimpleEventRequestField.Param.Length - 1))) { Param_List = (Param_List + " "); } } writer.WriteString(Param_List); } writer.WriteEndElement(); } WriteAnyElement(writer, SimpleEventRequestField.Any, false); writer.WriteEndElement(); } return; }