/// <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; }
/// <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); }