Example #1
0
 /// <summary>
 /// Notifications controller constructor.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="configuration"></param>
 /// <param name="logger"></param>
 /// <param name="notificationService"></param>
 public NotificationsApi(TripAppContext context, IConfiguration configuration, ILogger <TicketsApiController> logger, FCMNotificationService notificationService)
 {
     _context             = context;
     _configuration       = configuration;
     _logger              = logger;
     _notificationService = notificationService;
 }
Example #2
0
 /// <summary>
 /// Constructor method.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="configuration"></param>
 /// <param name="logger"></param>
 /// <param name="notificationService"></param>
 public TicketsApiController(TripAppContext context, IConfiguration configuration, ILogger <TicketsApiController> logger, FCMNotificationService notificationService)
 {
     _context             = context;
     _configuration       = configuration;
     _logger              = logger;
     _notificationService = notificationService;
     _newBuyerIsBIGNews   = _configuration.GetSection(Startup.AppSettingsConfigurationSectionKey).GetValue <bool>(Startup.AppSettingsNewBuyerIsANews);
 }