public Truyen(SiteTruyen wrapertype) { _wrapertype = wrapertype; // so chuong cache la 5 _currentChapters = new List <Chapter>(); //_cacheChapeters = new List<Chapter>(_chapterPerPage); CurrentIndexChapter = 0; CurrentPageCacheRead = CurrentPageRead + 1; }
public static IWraper Create(SiteTruyen type) { switch (type) { case SiteTruyen.TangThuVien: return(new TangThuVienWrapper()); case SiteTruyen.TungHoanh: return(new TungHoanhWrapper()); case SiteTruyen.WebTruyen: return(new WebTruyenWrapper()); case SiteTruyen.TruyenConvert: return(new TruyenConvertWrapper()); default: return(new LuongSonBacWrapper()); } }