public VideoMenuSubPageContent( NiconicoSession niconicoSession, Models.LocalMylist.LocalMylistManager localMylistManager, Models.UserMylistManager mylistManager, PageManager pageManager ) { NiconicoSession = niconicoSession; LocalMylistManager = localMylistManager; MylistManager = mylistManager; PageManager = pageManager; MenuItems = new ObservableCollection <HohoemaListingPageItemBase>(); ResetMenuItems(); LocalMylists = LocalMylistManager.Mylists .ToReadOnlyReactiveCollection(x => new MenuItemViewModel(x.Label, HohoemaPageType.Mylist, new NavigationParameters { { "id", x.Id }, { "origin", x.ToMylistOrigin() } }) as HohoemaListingPageItemBase ) .AddTo(_CompositeDisposable); Mylists = MylistManager.Mylists .ToReadOnlyReactiveCollection(x => new MenuItemViewModel(x.Label, HohoemaPageType.Mylist, new NavigationParameters { { "id", x.Id }, { "origin", x.ToMylistOrigin() } }) as HohoemaListingPageItemBase ) .AddTo(_CompositeDisposable); NiconicoSession.LogIn += OnLogIn; NiconicoSession.LogOut += OnLogOut; }
public MylistHelper( Models.UserMylistManager userMylistManager, Models.OtherOwneredMylistManager otherOwneredMylistManager, Models.LocalMylist.LocalMylistManager localMylistManager, Services.HohoemaPlaylist hohoemaPlaylist ) { UserMylistManager = userMylistManager; OtherOwneredMylistManager = otherOwneredMylistManager; LocalMylistManager = localMylistManager; HohoemaPlaylist = hohoemaPlaylist; }
public NotificationMylistUpdatedService( NiconicoSession niconicoSession, Models.UserMylistManager userMylistManager, Models.LocalMylist.LocalMylistManager localMylistManager, NotificationService notificationService ) { NiconicoSession = niconicoSession; UserMylistManager = userMylistManager; LocalMylistManager = localMylistManager; NotificationService = notificationService; Reset(); }