From 5f1278fb32f12cdfa0634dc9d8ed6f8b551f4e49 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 4 Feb 2019 00:18:59 +0000 Subject: Added comments for ParseMultiple --- Aggregator/Parser/Parser.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Aggregator') diff --git a/Aggregator/Parser/Parser.cs b/Aggregator/Parser/Parser.cs index 3bd141d..7d490cb 100644 --- a/Aggregator/Parser/Parser.cs +++ b/Aggregator/Parser/Parser.cs @@ -30,6 +30,13 @@ namespace Aggregator.Parser { PublishDate = DateTime.Parse(article[config.PublishDate].Value) }).Distinct(); //remove any duplicates } + + /// + /// Parse multiple xml sets, given a similar set of configs, to Articles + /// + /// Array of XML sets to parse for Articles + /// List of configs to parse for corresponding xml sets + /// Parsed articles from every XML set public static IEnumerable
ParseMultiple(string[] xmls, List configs) { if (configs.Count == 0 || xmls.Length == 0 || (xmls.Length != configs.Count)) { return null; //for bad cases -- cgit v1.2.3-13-gbd6f