Пример #1
0
        public VideoInfoManager GetVideoInfoManager(Series obj)
        {
            var manager = new VideoInfoManager(new SubObjectSetProvider <Series, JryVideoInfo>(this, obj));

            manager.CoverParentRemoving += (sender, parent) => this.OnCoverParentRemoving(parent, sender);
            return(manager);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="manager"></param>
        /// <param name="to">after combine will live</param>
        /// <param name="from">after combine will dead</param>
        /// <returns></returns>
        public async Task <CombineResult> CombineAsync(VideoInfoManager manager, JryVideoInfo to, JryVideoInfo from)
        {
            var result = await this.CanCombineAsync(manager, to, from);

            if (result.CanCombine)
            {
                await this.VideoRoleManager.CombineAsync(to.Id, from.Id);

                await manager.CombineAsync(to, from);
            }
            return(result);
        }