private static void FillList(IThreadList data, S1ThreadList list)
 {
     list.AddRange(
         data.ThreadList.Select(thread => new S1ListItem
     {
         Id           = thread.Id,
         Title        = S1Resource.HttpUtility.HtmlDecode(thread.Title),
         Subtle       = S1Resource.HttpUtility.HtmlDecode(thread.Subtle),
         Author       = S1Resource.HttpUtility.HtmlDecode(thread.Author),
         AuthorDate   = thread.AuthorDate,
         LastPoster   = S1Resource.HttpUtility.HtmlDecode(thread.LastPoster),
         LastPostDate = thread.LastPostDate
     }));
 }
Example #2
0
 private static void FillList(IThreadList data, S1ThreadList list)
 {
     list.AddRange(
         data.ThreadList.Select(thread => new S1ListItem
         {
             Id = thread.Id,
             Title = S1Resource.HttpUtility.HtmlDecode(thread.Title),
             Subtle = S1Resource.HttpUtility.HtmlDecode(thread.Subtle),
             Author = S1Resource.HttpUtility.HtmlDecode(thread.Author),
             AuthorDate = thread.AuthorDate,
             LastPoster = S1Resource.HttpUtility.HtmlDecode(thread.LastPoster),
             LastPostDate = thread.LastPostDate
         }));
 }