/// <summary> /// Create a News message. Nothing unexpected here. /// </summary> /// <param name="headline_str"></param> /// <param name="lines"></param> /// <returns></returns> static public QuickFix.FIX42.News News(string headline_str, IList<string> lines) { QuickFix.Fields.Headline headline = new QuickFix.Fields.Headline(headline_str); QuickFix.FIX42.News news = new QuickFix.FIX42.News(headline); QuickFix.FIX42.News.LinesOfTextGroup group = new QuickFix.FIX42.News.LinesOfTextGroup(); foreach (string s in lines) { group.Text = new QuickFix.Fields.Text(s); news.AddGroup(group); } if (lines.Count == 0) { QuickFix.Fields.LinesOfText noLines = new QuickFix.Fields.LinesOfText(0); news.SetField(noLines, true); } return news; }
/// <summary> /// Create a News message. Nothing unexpected here. /// </summary> /// <param name="headline_str"></param> /// <param name="lines"></param> /// <returns></returns> static public QuickFix.FIX42.News News(string headline_str, IList <string> lines) { QuickFix.Fields.Headline headline = new QuickFix.Fields.Headline(headline_str); QuickFix.FIX42.News news = new QuickFix.FIX42.News(headline); QuickFix.FIX42.News.LinesOfTextGroup group = new QuickFix.FIX42.News.LinesOfTextGroup(); foreach (string s in lines) { group.Text = new QuickFix.Fields.Text(s); news.AddGroup(group); } if (lines.Count == 0) { QuickFix.Fields.LinesOfText noLines = new QuickFix.Fields.LinesOfText(0); news.SetField(noLines, true); } return(news); }