public AniDbMetaStructureConfiguration(PluginConfiguration pluginConfiguration, IMappingConfiguration mappingConfiguration, ISources sources) { this.pluginConfiguration = pluginConfiguration; this.mappingConfiguration = mappingConfiguration; this.sources = sources; }
public void Setup() { _episodeMapper = Substitute.For <IEpisodeMapper>(); _sources = Substitute.For <ISources>(); _mappingList = Substitute.For <IMappingList>(); _embyData = Substitute.For <IEmbyItemData>(); _embyData.Identifier.Returns(new ItemIdentifier(67, 53, "Name")); _embyData.Language.Returns("en"); var aniDbSource = Substitute.For <IAniDbSource>(); _sources.AniDb.Returns(aniDbSource); var tvDbSource = Substitute.For <ITvDbSource>(); _sources.TvDb.Returns(tvDbSource); _tvDbSourceData = Substitute.For <ISourceData <TvDbEpisodeData> >(); _mediaItem = Substitute.For <IMediaItem>(); _mediaItem.EmbyData.Returns(_embyData); _mediaItem.ItemType.Returns(MediaItemTypes.Episode); SetUpTvDbEpisodeData(56, 67, 53); _noMappingResult = new ProcessFailedResult("", "", null, ""); _mappingList.GetSeriesMappingsFromTvDb(Arg.Any <int>(), Arg.Any <ProcessResultContext>()) .Returns(Left <ProcessFailedResult, IEnumerable <ISeriesMapping> >(_noMappingResult)); }
public AniMetadataConfiguration(PluginConfiguration pluginConfiguration, IMappingConfiguration mappingConfiguration, ISources sources) { _pluginConfiguration = pluginConfiguration; _mappingConfiguration = mappingConfiguration; _sources = sources; }
public AniListSeriesFromAniDb(IAniListClient aniListClient, ISources sources, ITitleNormaliser titleNormaliser, IAnilistConfiguration anilistConfiguration) { this.aniListClient = aniListClient; this.sources = sources; this.titleNormaliser = titleNormaliser; this.anilistConfiguration = anilistConfiguration; }
public SourcesController( ISources api, IAppSettings appSettings, ILogger <SourcesController> logger) : base() { this.api = api; this.appSettings = appSettings; this.logger = logger; }
public Sources() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = SourcesFactory.CreateSources(); }
public TvDbSeasonFromEmbyData(ISources sources) { _sources = sources; }
public TvDbEpisodeFromEmbyData(ISources sources, ITvDbClient tvDbClient, ITitleNormaliser titleNormaliser) { this.sources = sources; this.tvDbClient = tvDbClient; this.titleNormaliser = titleNormaliser; }
public TvDbSeriesFromAniDb(ISources sources, IMappingList mappingList) { this.sources = sources; this.mappingList = mappingList; }
public TvDbSeriesFromAniDb(ISources sources, IMappingList mappingList) { _sources = sources; _mappingList = mappingList; }
public TvDbSeasonFromAniDb(ISources sources) { this.sources = sources; }
public AniDbSeriesFromEmbyData(IAniDbClient aniDbClient, ISources sources) { _aniDbClient = aniDbClient; _sources = sources; }
public TvDbSeriesFromEmbyData(ITvDbClient tvDbClient, ISources sources) { this.tvDbClient = tvDbClient; this.sources = sources; }
public AniDbSeriesFromAniDbEpisode(ISources sources) { this.sources = sources; }
public TvDbSeriesFromEmbyData(ITvDbClient tvDbClient, ISources sources) { _tvDbClient = tvDbClient; _sources = sources; }
public AniDbEpisodeFromEmbyData(ISources sources, IAniDbEpisodeMatcher aniDbEpisodeMatcher, IMappingList mappingList) { this.sources = sources; this.aniDbEpisodeMatcher = aniDbEpisodeMatcher; this.mappingList = mappingList; }
public TvDbEpisodeFromAniDb(ISources sources, IMappingList mappingList, IEpisodeMapper episodeMapper) { _sources = sources; _mappingList = mappingList; _episodeMapper = episodeMapper; }
public TvDbSeriesFromTvDbEpisode(ISources sources) { _sources = sources; }
public AniDbEpisodeFromTvDb(ISources sources, IMappingList mappingList, IEpisodeMapper episodeMapper) { this.sources = sources; this.mappingList = mappingList; this.episodeMapper = episodeMapper; }
public AniDbSeasonFromEmbyData(ISources sources) { this.sources = sources; }
public AniDbSeriesFromEmbyData(IAniDbClient aniDbClient, ISources sources) { this.aniDbClient = aniDbClient; this.sources = sources; }
/// <summary> /// 添加对象 /// </summary> /// <param name="poolType"></param> /// <param name="poolObjectState"></param> /// <param name="Name"></param> /// <param name="sources"></param> public static void AddPool(PoolType poolType, PoolObjectStateType poolObjectState, string Name, ISources sources) { switch (poolType) { case PoolType.GenericProp: genericPropPool.AddPool(poolObjectState, Name, sources); break; case PoolType.Enemy: enemyPool.AddPool(poolObjectState, Name, sources); break; case PoolType.Player: playerPool.AddPool(poolObjectState, Name, sources); break; default: break; } }
public virtual void AddPool(PoolObjectStateType poolObjectState, string targetName, ISources target) { PoolOnject poolOnject = default(PoolOnject); switch (poolObjectState) { case PoolObjectStateType.Activity: if (!target.Target.activeInHierarchy) { target.Target.SetActive(true); } poolOnject = new PoolOnject(); poolOnject.targetName = targetName; poolOnject.sources = target; activityPoolObjects.Add(poolOnject); break; case PoolObjectStateType.Inactivity: if (target.Target.activeInHierarchy) { target.Target.SetActive(false); } poolOnject = activityPoolObjects.Find(p => p.targetName == targetName && p.sources == target); if (poolOnject != null) { activityPoolObjects.Remove(poolOnject); inactivityPoolObjects.Add(poolOnject); } else { poolOnject = new PoolOnject(); poolOnject.targetName = targetName; poolOnject.sources = target; inactivityPoolObjects.Add(poolOnject); } break; default: break; } }
public AniDbEpisodeFromEmbyData(ISources sources, IAniDbEpisodeMatcher aniDbEpisodeMatcher) { _sources = sources; _aniDbEpisodeMatcher = aniDbEpisodeMatcher; }