public void Join(SecurityCollection s) { foreach (var item in s.Securities) { if (this.Securities.ContainsKey(item.Key)) { this.Securities[item.Key].Join(item.Value); } else { this.Securities.Add(item.Key, item.Value); } } }
public Response(Event e) : base(e) { foreach (Message msg in e) { if (msg.HasElement(RESPONSE_ERROR)) { //Errors.Add(msg.GetElement(RESPONSE_ERROR)); Errors.Add(Parser.ErrorElement(this, "Response Error", msg.GetElement(RESPONSE_ERROR))); continue; } //Collections.Add(new SecurityCollection(msg.GetElement(SECURITY_DATA))); Collection = new SecurityCollection(msg.GetElement(SECURITY_DATA)); } }
private Subscribe(Event e) : base(e) { Collection = new SecurityCollection(e); }