Пример #1
0
 /// <summary>
 /// Constructor for injecting services with APIs.
 /// </summary>
 /// <param name="notification"></param>
 /// <param name="userRepository"></param>
 /// <param name="userNotification"></param>
 /// <param name="userPushedNotificationService"></param>
 public NotificationsController(INotificationSettingsService notification, IUserRepository userRepository, IUserNotificationSettingsService userNotification, IUserPushedNotificationService userPushedNotificationService, IPartnerNotificationsLogServicer partnerNotificationsLogServicer)
 {
     _notification     = notification;
     _userRepository   = userRepository;
     _userNotification = userNotification;
     _userPushedNotificationService   = userPushedNotificationService;
     _partnerNotificationsLogServicer = partnerNotificationsLogServicer;
 }
Пример #2
0
 public SettingsModule(IMapper mapper,
                       IUserNotificationSettingsService settingsService)
     : base(mapper, "notification/settings", false)
 {
     Get("/{userId}", async args => await Fetch <GetUserNotificationSettings, UserNotificationSettings>
             (async x => await settingsService.GetSettingsAsync(x.UserId))
         .MapTo <UserNotificationSettingsDto>()
         .HandleAsync());
 }
Пример #3
0
 public SignedUpHandler(IHandler handler,
                        IUserNotificationSettingsService settingsService,
                        IUserServiceClient userServiceClient,
                        GeneralSettings generalSettings)
 {
     _handler           = handler;
     _settingsService   = settingsService;
     _userServiceClient = userServiceClient;
     _generalSettings   = generalSettings;
 }
Пример #4
0
 public UpdateUserNotificationSettingsHandler(IHandler handler,
                                              IMapper mapper,
                                              IBusClient bus,
                                              IUserNotificationSettingsService settingsService)
 {
     _handler         = handler;
     _mapper          = mapper;
     _bus             = bus;
     _settingsService = settingsService;
 }
 public NotificationService(IRemarkServiceClient remarkServiceClient,
                            IRemarkSubscribersService subscribersService,
                            IUserNotificationSettingsService userNotificationSettingsService,
                            IEmailMessageService emailService)
 {
     _remarkServiceClient             = remarkServiceClient;
     _subscribersService              = subscribersService;
     _userNotificationSettingsService = userNotificationSettingsService;
     _emailService = emailService;
 }
Пример #6
0
 /// <summary>
 /// This constructor is used to inject services in API.
 /// </summary>
 /// <param name="userNotificationSettingsService"></param>
 /// <param name="userPushedNotificationService"></param>
 /// <param name="userRepository"></param>
 /// <param name="userFavorite"></param>
 /// <param name="promotions"></param>
 /// <param name="setting"></param>
 /// <param name="program"></param>
 /// <param name="Configuration"></param>
 /// <param name="accessor"></param>
 public SchedulerController(IUserNotificationSettingsService userNotificationSettingsService, IUserPushedNotificationService userPushedNotificationService,
                            IUserRepository userRepository, IUserFavoriteService userFavorite, IPromotions promotions
                            , IGeneralSettingService setting, IPrograms program, IHttpContextAccessor accessor, IConfiguration Configuration)
 {
     _userNotificationSettingsService = userNotificationSettingsService;
     _userPushedNotificationService   = userPushedNotificationService;
     _userRepository = userRepository;
     _userFavorite   = userFavorite;
     _promotions     = promotions;
     _setting        = setting;
     _program        = program;
     _accessor       = accessor;
     _configuration  = Configuration;
 }
 /// <summary>
 ///  Constructor for injecting services with APIs.
 /// </summary>
 /// <param name="userTransactionService"></param>
 /// <param name="userRepository"></param>
 /// <param name="programAccount"></param>
 /// <param name="setting"></param>
 /// <param name="userNotificationSettingsService"></param>
 /// <param name="userPushedNotificationService"></param>
 /// <param name="userPushedNotificationsStatusService"></param>
 /// <param name="program"></param>
 /// <param name="i2cAccountDetail"></param>
 public UserTransactionsController(IUserTransactionInfoes userTransactionService, IUserRepository userRepository,
                                   IProgramAccountService programAccount, IGeneralSettingService setting, IUserNotificationSettingsService userNotificationSettingsService,
                                   IUserPushedNotificationService userPushedNotificationService, IUserPushedNotificationsStatusService userPushedNotificationsStatusService,
                                   IPrograms program, II2CAccountDetailService i2cAccountDetail)
 {
     _userTransactionService = userTransactionService;
     _userRepository         = userRepository;
     _programAccount         = programAccount;
     _setting = setting;
     _userNotificationSettingsService = userNotificationSettingsService;
     _userPushedNotificationService   = userPushedNotificationService;
     _program          = program;
     _i2cAccountDetail = i2cAccountDetail;
 }
Пример #8
0
 public UsernameChangedHandler(IHandler handler,
                               IUserNotificationSettingsService settingsService)
 {
     _handler         = handler;
     _settingsService = settingsService;
 }