public SettingsViewModel(ISubsonicService subsonicService, IToastNotificationService notificationService, IStorageService storageService, ICustomFrameAdapter navigationService) { _subsonicService = subsonicService; _notificationService = notificationService; _storageService = storageService; _navigationService = navigationService; }
public SubsonicController(ISubsonicService subsonicService, ITrackService trackService, IReleaseService releaseService, IPlayActivityService playActivityService, ILoggerFactory logger, ICacheManager cacheManager, IConfiguration configuration, UserManager <ApplicationUser> userManager) : base(cacheManager, configuration, userManager) { this.Logger = logger.CreateLogger("RoadieApi.Controllers.SubsonicController"); this.SubsonicService = subsonicService; this.TrackService = trackService; this.ReleaseService = releaseService; this.PlayActivityService = playActivityService; }
public SubsonicController(ISubsonicService subsonicService, ITrackService trackService, IReleaseService releaseService, IPlayActivityService playActivityService, ILogger <SubsonicController> logger, ICacheManager cacheManager, UserManager <Library.Identity.User> userManager, IRoadieSettings roadieSettings) : base(cacheManager, roadieSettings, userManager) { Logger = logger; SubsonicService = subsonicService; TrackService = trackService; ReleaseService = releaseService; PlayActivityService = playActivityService; }
public ShellViewModel(IEventAggregator eventAggregator, ISubsonicService subsonicService, ICustomFrameAdapter navigationService, IToastNotificationService notificationService, IDialogNotificationService dialogNotificationService, IStorageService storageService, IWinRTWrappersService winRTWrappersService) { _eventAggregator = eventAggregator; SubsonicService = subsonicService; NavigationService = navigationService; NotificationService = notificationService; DialogNotificationService = dialogNotificationService; StorageService = storageService; WinRTWrappersService = winRTWrappersService; eventAggregator.Subscribe(this); }
public void InitializeFromSong(Song result, ISubsonicService subsonicService) { Artist = result.Artist; Title = result.Title; Uri = result.Type == SubsonicModelTypeEnum.Video ? subsonicService.GetUriForVideoWithId(result.Id) : subsonicService.GetUriForFileWithId(result.Id); CoverArtUrl = subsonicService.GetCoverArtForId(result.CoverArt); PlayingState = PlaylistItemState.NotPlaying; Duration = result.Duration; Type = result.Type == SubsonicModelTypeEnum.Video ? PlaylistItemTypeEnum.Video : PlaylistItemTypeEnum.Audio; }
public static PlaylistItem AsPlaylistItem(this ISongModel songModel, ISubsonicService subsonicService) { var playlistItem = new PlaylistItem { Artist = songModel.Artist, Title = songModel.Name, Duration = songModel.Duration, Uri = songModel.Type == SubsonicModelTypeEnum.Video ? subsonicService.GetUriForVideoWithId(songModel.Id) : subsonicService.GetUriForFileWithId(songModel.Id), CoverArtUrl = subsonicService.GetCoverArtForId(songModel.CoverArt), Type = songModel.Type == SubsonicModelTypeEnum.Video ? PlaylistItemTypeEnum.Video : PlaylistItemTypeEnum.Audio }; return playlistItem; }
public static PlaylistItem AsPlaylistItem(this ISongModel songModel, ISubsonicService subsonicService) { var playlistItem = new PlaylistItem { Artist = songModel.Artist, Title = songModel.Name, Duration = songModel.Duration, Uri = songModel.Type == SubsonicModelTypeEnum.Video ? subsonicService.GetUriForVideoWithId(songModel.Id) : subsonicService.GetUriForFileWithId(songModel.Id), CoverArtUrl = subsonicService.GetCoverArtForId(songModel.CoverArt), Type = songModel.Type == SubsonicModelTypeEnum.Video ? PlaylistItemTypeEnum.Video : PlaylistItemTypeEnum.Audio }; return(playlistItem); }
private static PlaylistItem CreatePlaylistItemFromSong(ISongModel result, ISubsonicService subsonicService) { var playlistItem = result.AsPlaylistItem(subsonicService); return(playlistItem); }
public Subsonic(ISubsonicService subsonicService, Logger logger) { _subsonicService = subsonicService; _logger = logger; }