aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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