コード例 #1
0
        /// <summary>
        /// Creates a new MainViewModel.
        /// </summary>
        public MainViewModel(IDataCache cache, IIsAcademiaService isaService, ISecureRequestHandler requestHandler)
            : base(cache)
        {
            _isaService     = isaService;
            _requestHandler = requestHandler;

            _weekDate = GetWeekStart(DateTime.Now);
        }
コード例 #2
0
 /// <summary>
 /// Creates a new MainViewModel.
 /// </summary>
 public MainViewModel(IDataCache cache, ISecureRequestHandler requestHandler, INavigationService navigationService,
                      IMoodleService moodleService)
     : base(cache)
 {
     _requestHandler    = requestHandler;
     _navigationService = navigationService;
     _moodleService     = moodleService;
 }
コード例 #3
0
 public CourseViewModel(IDataCache cache, ISecureRequestHandler requestHandler, IMoodleService moodleService,
                        IMoodleDownloader downloader, IFileStorage storage, IBrowserService browserService,
                        Course course)
     : base(cache)
 {
     _requestHandler = requestHandler;
     _moodleService  = moodleService;
     _downloader     = downloader;
     _storage        = storage;
     _browserService = browserService;
     Course          = course;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 public MainViewModel(ICamiproService camiproService, ISecureRequestHandler requestHandler)
 {
     _camiproService = camiproService;
     _requestHandler = requestHandler;
 }