/// <summary> /// Internal: Output this request. Can't use the Abstract Subscription Request because it needs to append two separate subscriptions. /// </summary> /// <param name="writer">The destination for the request content</param> public void WriteTo(IStructuredWriter writer) { writer.StartElement("req").StartElement("body"); writer.StartElement("subscription"); writer.ValueOrEmpty("type", "historicMarketData"); writer.EndElement("subscription").EndElement("body").EndElement("req"); }
private IStructuredWriter WriteOptions(IStructuredWriter writer) { if (_options.Length <= 0) { return(writer); } writer.StartElement("options"); foreach (Option option in _options) { writer.ValueOrNone("option", Convert.ToString(option).ToUpper()); } writer.EndElement("options"); return(writer); }
/// <summary> /// Internal: Output this request. /// </summary> /// <param name="writer">The destination for the request content</param> public void WriteTo(IStructuredWriter writer) { writer.StartElement("req").StartElement("body").StartElement("subscription"); WriteSubscriptionBodyTo(writer); writer.EndElement("subscription").EndElement("body").EndElement("req"); }
public void WriteTo(IStructuredWriter writer) { writer.StartElement("req").StartElement("body").StartElement("subscription"); this.WriteSubscriptionBodyTo(writer); writer.EndElement("subscription").EndElement("body").EndElement("req"); }