示例#1
0
        public Playlist Get(Data.Playlist model)
        {
            var result = new Playlist(_container, _validator, _dialogViewModel, model);

            result.AddRange(_mediaItemMapper.GetMany(model.MediaItems));
            return(result);
        }
示例#2
0
 public Data.MediaItem GetDataNewMediaItem(Data.Playlist playlist)
 {
     return(new Data.MediaItem()
     {
         Title = _translationService.Translate(nameof(Resources.New)),
         Description = string.Empty,
         Playlist = playlist,
     });
 }
示例#3
0
 /// <summary>
 /// Gets the core.
 /// </summary>
 /// <param name="mediaitem">The mediaitem.</param>
 /// <returns></returns>
 public Core.Playlist GetCore(Data.Playlist mediaitem)
 {
     return(_mapper.Map <Data.Playlist, Core.Playlist>(mediaitem));
 }
示例#4
0
 /// <summary>
 /// Gets the specified mediaitem.
 /// </summary>
 /// <param name="mediaitem">The mediaitem.</param>
 /// <returns></returns>
 public Playlist Get(Data.Playlist mediaitem)
 {
     return(new Playlist(_translationService, _mediaItemMapper, _sequenceProvider, _validator, _dialogViewModel, mediaitem));
 }