public MainMediaPlayer(ViewModelServiceContainer container, IMediaPlayer player, IValidator <MediaPlayer> validator, AudioDevices devices, Playlist playlist, Data.MediaPlayer model) : base(container, player, validator, devices, playlist, model) { IsPrimary = model.IsPrimary; _manager.PropertyChanged += (o, e) => { if (e.PropertyName == nameof(ILocalizationService.CurrentLanguage)) { UpdateName(); } }; UpdateName(); }
public MediaPlayer Get(Data.MediaPlayer player, Playlist playlist) { return(new MediaPlayer(_container, _mediaPlayer, _validator, _devices, playlist, player)); }
public MediaPlayer Get(Data.MediaPlayer model) { throw new NotImplementedException(); // by design }
public Core.MediaPlayer GetCore(Data.MediaPlayer model) { return(_mapper.Map <Data.MediaPlayer, Core.MediaPlayer>(model)); }
public MediaPlayer Get(Data.MediaPlayer model) { return(new MediaPlayer(_translationService, _mediaPlayer, _validator, _devices, null, model)); //TODO }
public MediaPlayer Get(Data.MediaPlayer player, Playlist playlist) { return(new MediaPlayer(_translationService, _mediaPlayer, _validator, _devices, playlist, player)); }