private static void AddProvider(MangaProvider NewProvider) { if (!_Providers.ContainsKey(NewProvider.Name.ToLower())) { _Providers.Add(NewProvider.Name.ToLower(), NewProvider); } }
protected Manga(SerializationInfo Info, StreamingContext Context) { if (Info == null) { throw new System.ArgumentNullException("Info"); } _LatestChapter = (Chapter)Info.GetValue("LatestChapter", typeof(Chapter)); _LatestReadChapter = (Chapter)Info.GetValue("LatestReadChapter", typeof(Chapter)); _Provider = ProviderFactory.GetProvider((String)Info.GetValue("Provider", typeof(String))); ; _Title = (String)Info.GetValue("Title", typeof(String)); _Updated = (DateTime)Info.GetValue("Updated", typeof(DateTime)); _Uri = (String)Info.GetValue("Uri", typeof(String)); }
public Manga() { _LatestChapter = new Chapter(); _LatestReadChapter = new Chapter(); _Provider = null; _Title = String.Empty; _Updated = DateTime.MinValue; _Uri = String.Empty; }