aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-04 00:18:59 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-04 00:18:59 +0000
commit5f1278fb32f12cdfa0634dc9d8ed6f8b551f4e49 (patch)
treebe3b429b9f0a344d6f107f145d540ec92ba18994
parent4dac7b86f724d962e7d58606f03bc96d5cd9d0c2 (diff)
downloadnewsaggregator-5f1278fb32f12cdfa0634dc9d8ed6f8b551f4e49.tar.gz
newsaggregator-5f1278fb32f12cdfa0634dc9d8ed6f8b551f4e49.tar.bz2
newsaggregator-5f1278fb32f12cdfa0634dc9d8ed6f8b551f4e49.zip
Added comments for ParseMultiple
-rw-r--r--Aggregator/Parser/Parser.cs7
1 files changed, 7 insertions, 0 deletions
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
}
+
+ /// <summary>
+ /// Parse multiple xml sets, given a similar set of configs, to Articles
+ /// </summary>
+ /// <param name="xmls">Array of XML sets to parse for Articles</param>
+ /// <param name="configs">List of configs to parse for corresponding xml sets</param>
+ /// <returns>Parsed articles from every XML set</returns>
public static IEnumerable<Article> ParseMultiple(string[] xmls, List<Config> configs) {
if (configs.Count == 0 || xmls.Length == 0 || (xmls.Length != configs.Count)) {
return null; //for bad cases