protected override void BuildXmlBody(XmlRequestBuilder xmlRequestBuilder) { if (null == xmlRequestBuilder) { throw new ArgumentNullException(nameof(xmlRequestBuilder)); } xmlRequestBuilder.WriteStartElement("trust"); // <trust> xmlRequestBuilder.AppendAttribute("inv", InvoiceAllowed ? 1 : 0); xmlRequestBuilder.AppendAttribute("trans", TransferAllowed ? 1 : 0); xmlRequestBuilder.AppendAttribute("purse", BalanceAllowed ? 1 : 0); xmlRequestBuilder.AppendAttribute("transhist", HistoryAllowed ? 1 : 0); xmlRequestBuilder.WriteElement("masterwmid", Master.ToString()); xmlRequestBuilder.WriteElement("slavewmid", Initializer.Id.ToString()); xmlRequestBuilder.WriteElement("purse", Purse.ToString()); xmlRequestBuilder.WriteElement("limit", Limit.ToString()); xmlRequestBuilder.WriteElement("daylimit", DayLimit.ToString()); xmlRequestBuilder.WriteElement("weeklimit", WeekLimit.ToString()); xmlRequestBuilder.WriteElement("monthlimit", MonthLimit.ToString()); xmlRequestBuilder.WriteEndElement(); // </trust> }