예제 #1
0
        public static void RemoveLinkAniDBMAL(int animeID, int epType, int epNumber)
        {
            CrossRef_AniDB_MALRepository repCrossRef = new CrossRef_AniDB_MALRepository();
            CrossRef_AniDB_MAL           xref        = repCrossRef.GetByAnimeConstraint(animeID, epType, epNumber);

            if (xref == null)
            {
                return;
            }

            repCrossRef.Delete(xref.CrossRef_AniDB_MALID);

            StatsCache.Instance.UpdateUsingAnime(animeID);

            CommandRequest_WebCacheDeleteXRefAniDBMAL req = new CommandRequest_WebCacheDeleteXRefAniDBMAL(animeID, epType, epNumber);

            req.Save();
        }
예제 #2
0
        public static void RemoveLinkAniDBMAL(int animeID, int epType, int epNumber)
        {
            CrossRef_AniDB_MAL xref = RepoFactory.CrossRef_AniDB_MAL.GetByAnimeConstraint(animeID, epType, epNumber);

            if (xref == null)
            {
                return;
            }

            RepoFactory.CrossRef_AniDB_MAL.Delete(xref.CrossRef_AniDB_MALID);

            SVR_AniDB_Anime.UpdateStatsByAnimeID(animeID);

            CommandRequest_WebCacheDeleteXRefAniDBMAL req = new CommandRequest_WebCacheDeleteXRefAniDBMAL(animeID,
                                                                                                          epType,
                                                                                                          epNumber);

            req.Save();
        }
예제 #3
0
        public static void RemoveLinkAniDBMAL(int animeID, int malID, int epType, int epNumber)
        {
            CrossRef_AniDB_MAL xref = RepoFactory.CrossRef_AniDB_MAL.GetByMALID(malID);

            if (xref == null || xref.AnimeID != animeID || xref.StartEpisodeType != epType ||
                xref.StartEpisodeNumber != epNumber)
            {
                return;
            }

            RepoFactory.CrossRef_AniDB_MAL.Delete(xref.CrossRef_AniDB_MALID);

            SVR_AniDB_Anime.UpdateStatsByAnimeID(animeID);

            CommandRequest_WebCacheDeleteXRefAniDBMAL req = new CommandRequest_WebCacheDeleteXRefAniDBMAL(animeID,
                                                                                                          epType,
                                                                                                          epNumber);

            req.Save();
        }