Пример #1
0
 private FileInfoPropertyGroup(WikiPageStub page, JArray jrevisions)
 {
     if (jrevisions.Count == 1)
     {
         _Revisions = MediaWikiHelper.FileRevisionFromJson((JObject)jrevisions.First, page);
     }
     else
     {
         _Revisions = new ReadOnlyCollection <FileRevision>(jrevisions
                                                            .Select(jr => MediaWikiHelper.FileRevisionFromJson((JObject)jr, page))
                                                            .ToArray());
     }
 }