public ChapterBase(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory) { this.chapter = chapter; this.quranInfo = info; this.dbFactory = dbFactory; isValid = (chapter != null && chapter.Id > 0 && !string.IsNullOrEmpty(chapter.Name) && chapter.TotalAyahs > 0); }
public ChapterData(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory) : base(info, chapter, dbFactory) { verses = new List<Verse>(); rukus = new List<int>(); sajdas = new List<int>(); }
public LSChapterData(QuranInfo info, ChapterLite chapter, DatabaseFactory dbFactory) : base(info, chapter, dbFactory) { verses = new List<LSVerse>(); lsChapter = new LSChapter(); lsChapter.Id = chapter.Id; lsChapter.TransId = info.Translator; LoadDBVerses(); }
private IChapter CreateChapterData(ChapterLite dbChapter) { IChapter chapterData = null; //arabic quran data is being added if (quranInfo.Translator == 0 || quranInfo.Language == 1) { chapterData = new ChapterData(quranInfo, dbChapter, dbFactory); } else { chapterData = new LSChapterData(quranInfo, dbChapter, dbFactory); } return chapterData; }