Ejemplo n.º 1
0
 public TimeshiftPageViewModel(
     ApplicationLayoutManager applicationLayoutManager,
     LoginUserLiveReservationProvider loginUserLiveReservationProvider,
     NicoLiveProvider nicoLiveProvider,
     HohoemaPlaylist hohoemaPlaylist,
     NoUIProcessScreenContext noUIProcessScreenContext,
     Services.DialogService dialogService
     )
 {
     ApplicationLayoutManager         = applicationLayoutManager;
     LoginUserLiveReservationProvider = loginUserLiveReservationProvider;
     NicoLiveProvider          = nicoLiveProvider;
     HohoemaPlaylist           = hohoemaPlaylist;
     _noUIProcessScreenContext = noUIProcessScreenContext;
     DialogService             = dialogService;
 }
Ejemplo n.º 2
0
 public TimeshiftPageViewModel(
     ILoggerFactory loggerFactory,
     ApplicationLayoutManager applicationLayoutManager,
     LoginUserLiveReservationProvider loginUserLiveReservationProvider,
     NicoLiveProvider nicoLiveProvider,
     NoUIProcessScreenContext noUIProcessScreenContext,
     Services.DialogService dialogService,
     OpenLiveContentCommand openLiveContentCommand
     )
     : base(loggerFactory.CreateLogger <TimeshiftPageViewModel>())
 {
     ApplicationLayoutManager         = applicationLayoutManager;
     LoginUserLiveReservationProvider = loginUserLiveReservationProvider;
     NicoLiveProvider          = nicoLiveProvider;
     _noUIProcessScreenContext = noUIProcessScreenContext;
     DialogService             = dialogService;
     OpenLiveContentCommand    = openLiveContentCommand;
 }
Ejemplo n.º 3
0
        public NiconicoLoginService(
            NiconicoSession niconicoSession,
            NoUIProcessScreenContext noProcessUIScreenContext,
            DialogService dialogService,
            NotificationService notificationService,
            IMessenger messenger
            )
        {
            NiconicoSession           = niconicoSession;
            _noProcessUIScreenContext = noProcessUIScreenContext;
            DialogService             = dialogService;
            NotificationService       = notificationService;
            _messenger = messenger;

            // 二要素認証を求められるケースに対応する
            // 起動後の自動ログイン時に二要素認証を要求されることもある
            _messenger.Register <NiconicoSessionLoginRequireTwoFactorAsyncRequestMessage>(this);

            NiconicoSession.LogIn       += NiconicoSession_LogIn;
            NiconicoSession.LogInFailed += NiconicoSession_LogInFailed;
            NiconicoSession.LogOut      += NiconicoSession_LogOut;
        }
Ejemplo n.º 4
0
 public NoUIProcessScreen()
 {
     DataContext = _context = Microsoft.Toolkit.Mvvm.DependencyInjection.Ioc.Default.GetService <NoUIProcessScreenContext>();
     this.InitializeComponent();
 }
Ejemplo n.º 5
0
 public NoUIProcessScreen()
 {
     DataContext = _context = App.Current.Container.Resolve <NoUIProcessScreenContext>();
     this.InitializeComponent();
 }