Beispiel #1
0
 public EventRepository(IApiService apiService, IStateService stateService, ICustomNotification notification, IMapper mapper)
 {
     _apiService   = apiService;
     _stateService = stateService;
     _mapper       = mapper;
     _notification = notification;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DownloadNotification"/> class.
 /// </summary>
 /// <param name="ctx">
 /// The ctx.
 /// </param>
 /// <param name="applicationLabel">
 /// The application label.
 /// </param>
 internal DownloadNotification(Context ctx, string applicationLabel)
 {
     this.clientState         = DownloaderState.Unknown;
     this.context             = ctx;
     this.label               = applicationLabel;
     this.notificationManager =
         this.context.GetSystemService(Context.NotificationService).JavaCast <NotificationManager>();
     this.notification        = new Notification();
     this.customNotification  = CustomNotificationFactory.CreateCustomNotification();
     this.currentNotification = this.notification;
 }
Beispiel #3
0
 public ApiService(IJSRuntime jsRuntime, ICustomNotification notification, NavigationManager navigationManager)
 {
     _jsRuntime         = jsRuntime;
     _notification      = notification;
     _navigationManager = navigationManager;
 }
 public EventHeadRepository(ICustomNotification notification, IApiService apiService, IStateService stateService)
 {
     _notification = notification;
     _apiService   = apiService;
     _stateService = stateService;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="DownloadNotification"/> class.
        /// </summary>
        /// <param name="ctx">
        /// The ctx.
        /// </param>
        /// <param name="applicationLabel">
        /// The application label.
        /// </param>
        internal DownloadNotification(Context ctx, string applicationLabel)
        {
            this.clientState = DownloaderState.Unknown;
            this.context = ctx;
            this.label = applicationLabel;
            this.notificationManager =
                this.context.GetSystemService(Context.NotificationService).JavaCast<NotificationManager>();
            this.notification = new Notification();
			this.customNotification = CustomNotificationFactory.CreateCustomNotification();
            this.currentNotification = this.notification;
        }
Beispiel #6
0
 public ScheduleRepository(IApiService apiService, ICustomNotification notification)
 {
     _apiService   = apiService;
     _notification = notification;
 }
Beispiel #7
0
 public MainPage()
 {
     InitializeComponent();
     notification = DependencyService.Get <ICustomNotification>();
 }
Beispiel #8
0
 public StateService(IApiService apiService, IMapper mapper, ICustomNotification notification)
 {
     _apiService = apiService;
     _mapper     = mapper;
 }
Beispiel #9
0
 public ApiService(IJSRuntime jsRuntime, ICustomNotification notification)
 {
     _jsRuntime    = jsRuntime;
     _notification = notification;
 }
        private void CustomNotificationCallback(ICustomNotification notification)
        {
            var duration = DateTime.Now - notification.TimeStamp;

            Message = $"Custom notification duration: {duration.TotalSeconds:0.00} sec";
        }
Beispiel #11
0
 public UserRepository(IApiService apiService, ICustomNotification notification, IMapper mapper)
 {
     _apiService   = apiService;
     _notification = notification;
     _mapper       = mapper;
 }
Beispiel #12
0
 public ResultRepository(IApiService apiService, ICustomNotification notification, IStateService state)
 {
     _apiService   = apiService;
     _notification = notification;
     _state        = state;
 }