public BlogTruyenChapter(string siteUri, string name, MangaSeries series,string uploadedDate="") { this.SiteUri = siteUri; this.Name = name.Trim().RemoveInvalidChars(); this.HomeSeries = series; this.UpdatedDate = uploadedDate; chapterPath = HomeSeries.HomeSite.Name + "\\" + HomeSeries.Name + "\\" + Name + "\\"; }
public KissMangaChapter(string siteUri, string name, MangaSeries series,string uploadedDate="", string viewCountSource="0") { this.SiteUri = siteUri; this.Name = name.Trim().RemoveInvalidChars(); this.HomeSeries = series; this.UpdatedDate = uploadedDate; int count = 0; if (Int32.TryParse(viewCountSource, out count)) this.SourceViewCount = count; ChapterPath = "Sites\\" + HomeSeries.HomeSite.Name + "\\" + HomeSeries.Name + "\\" + Name + "\\"; }
internal static int SortSeriesByViewCount(MangaSeries arg) { return arg.ViewCount + arg.SourceViewCount; }