public BLOOM_REQUEST(SRC_BLOOMBERG source, string[] securities, string[] fields, REQUEST_PARAM[] request_params, string type) { this.source = source; this.securities = securities; this.fields = fields; this.request_params = request_params; this.type = type; }
public Dictionary <string, SOURCE> Get_sources() { Dictionary <string, SOURCE> result = new Dictionary <string, SOURCE>(); XmlElement e_sources = Get_child(e_configuration, "sources", "sources"); XmlElement[] source_list = Get_children(e_sources, "source", "sources/source"); foreach (XmlElement e_source in source_list) { string id = Get_child(e_source, "id", "source/id").InnerText; string type = Get_child(e_source, "type", "source/type").InnerText; SOURCE source = null; switch (type) { case "bloomberg": source = new SRC_BLOOMBERG(); break; } result.Add(id, source); } return(result); }