public CheckoutController( ICurrencyService currencyService, ControllerExceptionHandler controllerExceptionHandler, IOrderRepository orderRepository, CheckoutViewModelFactory checkoutViewModelFactory, ICartService cartService, OrderSummaryViewModelFactory orderSummaryViewModelFactory, IRecommendationService recommendationService, CheckoutService checkoutService, IKlarnaPaymentsService klarnaPaymentsService, IKlarnaCheckoutService klarnaCheckoutService, IContentLoader contentLoader) { _currencyService = currencyService; _controllerExceptionHandler = controllerExceptionHandler; _orderRepository = orderRepository; _checkoutViewModelFactory = checkoutViewModelFactory; _cartService = cartService; _orderSummaryViewModelFactory = orderSummaryViewModelFactory; _recommendationService = recommendationService; _checkoutService = checkoutService; _klarnaPaymentsService = klarnaPaymentsService; _klarnaCheckoutService = klarnaCheckoutService; _contentLoader = contentLoader; }
public CheckoutController( ICurrencyService currencyService, ControllerExceptionHandler controllerExceptionHandler, IOrderRepository orderRepository, CheckoutViewModelFactory checkoutViewModelFactory, ICartService cartService, OrderSummaryViewModelFactory orderSummaryViewModelFactory, IRecommendationService recommendationService, CheckoutService checkoutService, OrderValidationService orderValidationService, IDatabaseMode databaseMode, SecureAcceptanceSecurity secureAcceptanceSecurity, IAddressBookService addressBookService) { _currencyService = currencyService; _controllerExceptionHandler = controllerExceptionHandler; _orderRepository = orderRepository; _checkoutViewModelFactory = checkoutViewModelFactory; _cartService = cartService; _orderSummaryViewModelFactory = orderSummaryViewModelFactory; _recommendationService = recommendationService; _checkoutService = checkoutService; _orderValidationService = orderValidationService; _databaseMode = databaseMode; _secureAcceptanceSecurity = secureAcceptanceSecurity; _addressBookService = addressBookService; }
public HrService( IStudentService studentService, IResumeService resumeService, IUserInfoService userInfoService, IStreamService streamService, ISummaryService summaryService, ISkillService skillService, IForeignLanguageService languageService, IEducationService educationService, ICourseService courseService, ICertificateService certificateService, IExamService examService, IWorkExperienceService workExperienceService, IPortfolioService portfolioService, IMilitaryStatusService militaryStatusService, IRecommendationService recommendationService, IAdditionalInfoService additionalInfoService ) { _userInfoService = userInfoService; _studentService = studentService; _resumeService = resumeService; _streamService = streamService; _summaryService = summaryService; _skillService = skillService; _languageService = languageService; _educationService = educationService; _courseService = courseService; _certificateService = certificateService; _examService = examService; _workExperienceService = workExperienceService; _portfolioService = portfolioService; _militaryStatusService = militaryStatusService; _additionalInfoService = additionalInfoService; _recommendationService = recommendationService; }
public UserController(IUserService userService, IOutloanService outloanService, IReviewService reviewService, IRecommendationService recommendationService) { _userService = userService; _outloanService = outloanService; _reviewService = reviewService; _recommendationService = recommendationService; }
public UsersController(IUserService userService, IReviewService reviewService, IRecommendationService recommendationService) { _userService = userService; _reviewService = reviewService; _recommendationService = recommendationService; _userService.OnStart(); }
/// <summary> /// Set the services as dependency injection for user routes /// </summary> /// <param name="userService">user service</param> /// <param name="tapeService">tape service</param> /// <param name="reviewService">review service</param> /// <param name="recommendationService">recommendation service</param> public UsersController(IUserService userService, ITapeService tapeService, IReviewService reviewService, IRecommendationService recommendationService) { this._userService = userService; this._tapeService = tapeService; this._reviewService = reviewService; this._recommendationService = recommendationService; }
public RecommendationsController( IRecommendationService recommendationService, IEnumParseService enumParseService) { this.recommendationService = recommendationService; this.enumParseService = enumParseService; }
public RecommendationsController(IDoctorService doctorService, IRecommendationService recommendationService, IPatientService patientService) { _doctorService = doctorService; _recommendationService = recommendationService; _patientService = patientService; }
public RecommendationViewController(ILogger <RecommendationViewController> logger, IRecommendationService recommendationService, ICustomerProfileService customerProfileService, IPromotionService promotionService) { _logger = logger; _recommendationService = recommendationService; _customerProfileService = customerProfileService; _promotionService = promotionService; }
public UserController(DBClient client, IRecommendationService recommendationService, IConfigurationRepository configurationRepository, ILogger <UserController> log) { _client = client; _recommendationService = recommendationService; _configurationRepository = configurationRepository; _log = log; }
public CheckoutController( ICurrencyService currencyService, ControllerExceptionHandler controllerExceptionHandler, IOrderRepository orderRepository, CheckoutViewModelFactory checkoutViewModelFactory, ICartService cartService, OrderSummaryViewModelFactory orderSummaryViewModelFactory, IRecommendationService recommendationService, CheckoutService checkoutService, OrderValidationService orderValidationService, IDatabaseMode databaseMode, ISwedbankPayCheckoutService swedbankPayCheckoutService, IContentLoader contentLoader, IMarketService marketService, IAddressBookService addressBookService) { _currencyService = currencyService; _controllerExceptionHandler = controllerExceptionHandler; _orderRepository = orderRepository; _checkoutViewModelFactory = checkoutViewModelFactory; _cartService = cartService; _orderSummaryViewModelFactory = orderSummaryViewModelFactory; _recommendationService = recommendationService; _checkoutService = checkoutService; _orderValidationService = orderValidationService; _databaseMode = databaseMode; _swedbankPayCheckoutService = swedbankPayCheckoutService; _contentLoader = contentLoader; _marketService = marketService; _addressBookService = addressBookService; }
public PackageController(IsInEditModeAccessor isInEditModeAccessor, CatalogEntryViewModelFactory viewModelFactory, IRecommendationService recommendationService, ReferenceConverter referenceConverter) { _isInEditMode = isInEditModeAccessor(); _viewModelFactory = viewModelFactory; _recommendationService = recommendationService; _referenceConverter = referenceConverter; }
public SannsynRecommendedProductsService(ITrackedRecommendationService trackedRecommendationService, IRecommendationService recommendationService, ReferenceConverter referenceConverter, IContentRepository contentRepository) { _trackedRecommendationService = trackedRecommendationService; _recommendationService = recommendationService; _referenceConverter = referenceConverter; _contentRepository = contentRepository; }
public PestDetectedHandler(IRecommendationService recommendationService, IFieldService fieldService, IMessageService messageService, IPestService pestService) { _recommendationService = recommendationService; _fieldService = fieldService; _messageService = messageService; _pestService = pestService; }
public LibraryController(IBookService bookService, IUserService userService, ILoanService loanService, IReviewService reviewService, IRecommendationService recommendationService) { _bookService = bookService; _userService = userService; _loanService = loanService; _reviewService = reviewService; _recommendationService = recommendationService; }
public RecommendationApiController( ISpeciesService speciesService, IRegionService regionService, IProductionMethodService productionMethodService, IRecommendationService recommendationService) : base(speciesService, productionMethodService, regionService, recommendationService) { }
/// <inheritdoc /> public EventController(IEventService eventService, ILogger <EventController> logger, IRecommendationService recommendationService, IWorkQueue workQueue) { EventService = eventService; Logger = logger; RecommendationService = recommendationService; WorkQueue = workQueue; }
public HistoryController(IConversationService conversationService, IRecommendationService recommendationService, IPatientService patientService, SiteUserManager userManager, IDoctorService doctorService) { _conversationService = conversationService; _recommendationService = recommendationService; _patientService = patientService; _userManager = userManager; _doctorService = doctorService; }
public LibraryController(IUserService userService, IBookService bookService, IRecommendationService recommendationService, IReportingService reportingService, IReviewService reviewService) { _userService = userService; _bookService = bookService; _recommendationService = recommendationService; _reportingService = reportingService; _reviewService = reviewService; }
public UserController(IUserService userService, IOfferService offerService, UserManager <FindMyTutorUser> userManager, IMapper mapper, IRecommendationService recommendationService) { this.userService = userService; this.offerService = offerService; this.userManager = userManager; this.mapper = mapper; this.recommendationService = recommendationService; }
public CategoryController( SearchViewModelFactory viewModelFactory, IRecommendationService recommendationService, ReferenceConverter referenceConverter) { _viewModelFactory = viewModelFactory; _recommendationService = recommendationService; _referenceConverter = referenceConverter; }
public DislikePageViewModel(INavigationService navigationService, IRecommendationService recommendationService, ILogService logService, IFoodFavorService foodFavorService) { _navigationService = navigationService; _recommendationService = recommendationService; _logService = logService; _foodFavorService = foodFavorService; }
public GetRecommendedGamesQueryHandler( ILogger <GetRecommendedGamesQuery> logger, IMapper mapper, IRecommendationService recommendationService) : base(logger) { _mapper = mapper; _recommendationService = recommendationService; }
public ProNet(IRankService rankService, ISkillsService skillsService, ISeparationService separationService, IRecommendationService recommendationService, ITeamStrengthService teamStrengthService, IStrongestTeamService strongestTeamService) { _rankService = rankService; _skillsService = skillsService; _separationService = separationService; _recommendationService = recommendationService; _teamStrengthService = teamStrengthService; _strongestTeamService = strongestTeamService; }
public HomeController(IPostRepository postrepo, IMapper mapper, IRecommendationService recommendationService, UserManager <ApplicationUser> userManager) { _postrepo = postrepo; _mapper = mapper; _recommendationService = recommendationService; _userManager = userManager; }
public AnalysisController( ISpeciesService speciesService, IRegionService regionService, IProductionMethodService productionMethodService, IRecommendationService recommendationService, IBodyOfWaterService bodyOfWaterService, ICriteria2Service criteriaService) : base(speciesService, productionMethodService, regionService, recommendationService, bodyOfWaterService, criteriaService) { }
/// <summary> /// Default constructor /// </summary> /// <param name="context"></param> /// <param name="logger"></param> /// <param name="mapper"></param> /// <param name="analyticsService"></param> /// <param name="recommendationService"></param> /// <param name="workQueue"></param> public TicketService(ApplicationContext context, ILogger <TicketService> logger, IMapper mapper, IAnalyticsService analyticsService, IRecommendationService recommendationService, IWorkQueue workQueue) { Logger = logger; Mapper = mapper; ApplicationContext = context; AnalyticsService = analyticsService; WorkQueue = workQueue; RecommendationService = recommendationService; }
public OrderConfirmationController( ConfirmationService confirmationService, AddressBookService addressBookService, IRecommendationService recommendationService, CustomerContextFacade customerContextFacade, IOrderGroupTotalsCalculator orderGroupTotalsCalculator) : base(confirmationService, addressBookService, customerContextFacade, orderGroupTotalsCalculator) { _recommendationService = recommendationService; }
public ChatController(IChatService chatService, UserManager <User> userManager, IMapper mapper, IEmotionGetter emotionGetter, IMoodService moodService, IRecommender recommender, IRecommendationService recommendationService) { this.chatService = chatService; this.userManager = userManager; this.mapper = mapper; this.emotionGetter = emotionGetter; this.moodService = moodService; this.recommender = recommender; this.recommendationService = recommendationService; }
public UsersController( IFriendsService friendsService, IReviewsService reviewsService, IRecommendationService recommendationService, IBorrowInfosService borrowInfosService) { FriendsService = friendsService; ReviewsService = reviewsService; RecommendationService = recommendationService; BorrowInfosService = borrowInfosService; }
public NetflixFalcorRouter(IRatingService ratingService, IRecommendationService recommendationService, int userId) { Get["titlesById[{ranges:titleIds}]['rating', 'userRating']"] = async parameters => { List <int> titleIds = parameters.titleIds; var ratings = await ratingService.GetRatingsAsync(titleIds, userId); var results = titleIds.Select(titleId => { var rating = ratings.SingleOrDefault(r => r.TitleId == titleId); var path = Path("titlesById", titleId); if (rating == null) { return(path.Keys("userRating", "rating").Undefined()); } if (rating.Error) { return(path.Keys("userRating", "rating").Error(rating.ErrorMessage)); } return(path .Key("userRating").Atom(rating.UserRating, TimeSpan.FromSeconds(-3)) .Key("rating").Atom(rating.Rating)); }); return(Complete(results)); }; Get["genrelist[{integers:indices}].name"] = async parameters => { var genreResults = await recommendationService.GetGenreListAsync(userId); List <int> indices = parameters.indices; var results = indices.Select(index => { var genre = genreResults.ElementAtOrDefault(index); return(genre != null ? Path("genrelist", index, "name").Atom(genre.Name) : Path("genrelist", index).Undefined()); }); return(Complete(results)); }; Get["genrelist.mylist"] = async _ => { var genreResults = await recommendationService.GetGenreListAsync(userId); var myList = genreResults.SingleOrDefault(g => g.IsMyList); var index = genreResults.IndexOf(myList); return(myList != null ? Complete(Path("genrelist", "mylist").Ref("genrelist", index)) : Error("myList missing from genrelist")); }; }
public CartController( ICartService cartService, IOrderRepository orderRepository, IRecommendationService recommendationService, CartViewModelFactory cartViewModelFactory) { _cartService = cartService; _orderRepository = orderRepository; _recommendationService = recommendationService; _cartViewModelFactory = cartViewModelFactory; }
/// <summary> /// Initializes a new instance of the <see cref="RecommendationController"/> class. /// </summary> /// <param name="httpContextAccessor">The class that provides <see cref="HttpContext"/> data.</param> /// <param name="service">The service for interacting with recommendation data.</param> /// <param name="userManager">The class that provides functionality with application <see cref="User"/> classes.</param> public RecommendationController( IHttpContextAccessor httpContextAccessor, IRecommendationService service, UserManager <User> userManager) : base( httpContextAccessor, userManager) { this.service = service; this.service.AddApplicationUser(ApplicationUser); }
public ApiControllerBase( ISpeciesService speciesService, IProductionMethodService productionMethodService, IRegionService regionService, IRecommendationService recommendationService) { this.speciesService = speciesService; this.productionMethodService = productionMethodService; this.regionService = regionService; this.recommendationService = recommendationService; }
public CmsTrackingService(IContentLoader contentLoader, ITrackingService trackingService, IContextModeResolver contextModeResolver, ISiteDefinitionResolver siteDefinitionResolver, IRecommendationService personalizationRecommendationService) { _contentLoader = contentLoader; _trackingService = trackingService; _contextModeResolver = contextModeResolver; _siteDefinitionResolver = siteDefinitionResolver; _personalizationRecommendationService = personalizationRecommendationService; }
public ControllerBase( ISpeciesService speciesService, IProductionMethodService productionMethodService, IRegionService regionService, IRecommendationService recommendationService, IBodyOfWaterService bodyOfWaterService, ICriteria2Service criteriaService) : this() { this.speciesService = speciesService; this.regionService = regionService; this.productionMethodService = productionMethodService; this.recommendationService = recommendationService; this.bodyOfWaterService = bodyOfWaterService; this.criteriaService = criteriaService; }
public NetflixRouter(IRatingService ratingService, IRecommendationService recommendationService, int userId) { Get["titlesById[{ranges:titleIds}]['rating']"] = async parameters => { List<int> titleIds = parameters.titleIds; var ratings = await ratingService.GetRatingsAsync(titleIds, userId); var results = titleIds.Select(titleId => { var rating = ratings.SingleOrDefault(r => r.TitleId == titleId); var path = Path("titlesById", titleId); if (rating == null) return path.Keys("userRating", "rating").Undefined(); if (rating.Error) return path.Keys("userRating", "rating").Error(rating.ErrorMessage); return path .Key("userRating").Atom(rating.UserRating) .Key("rating").Atom(rating.Rating); }); return Complete(results); }; Get["genrelist[{integers:indices}].name"] = async parameters => { var genreResults = await recommendationService.GetGenreListAsync(userId); List<int> indices = parameters.indices; var results = indices.SelectMany(index => { var genre = genreResults.ElementAtOrDefault(index); return genre != null ? Path("genrelist", index, "name").Atom(genre.Name, TimeSpan.FromDays(-1)) : Path("genrelist", index).Undefined(); }); return Complete(results); }; Get["genrelist.mylist"] = async _ => { var genreResults = await recommendationService.GetGenreListAsync(userId); var myList = genreResults.SingleOrDefault(g => g.IsMyList); var index = genreResults.IndexOf(myList); return myList != null ? Complete(Path("genrelist", "mylist").Ref("genrelist", index)) : Error("myList missing from genrelist"); }; }
public RecommendationController(IRecommendationService recommendationService) { _recommendationService = recommendationService; }
public RecommendationController(IRecommendationService recommendationService, IPatientService patientService) { _recommendationService = recommendationService; _patientService = patientService; }
public HomeController(IRecommendationService recommendationService, CategoryService categoryService) { this.recommendationService = recommendationService; this.categoryService = categoryService; }
public PatientController(IRecommendationService recommendationService, IConversationService conversationService, IPatientService patientService) { _recommendationService = recommendationService; _conversationService = conversationService; _patientService = patientService; }
public NetflixFalcorRouter(IRatingService ratingService, IRecommendationService recommendationService, int userId) { Get["titles[{ranges:indices}]"] = async parameters => { List<int> titleIds = parameters.indices; var ratings = await ratingService.GetRatingsAsync(titleIds.Select(x => Guid.NewGuid()), userId); var results = titleIds.Select(idx => { var rating = ratings.ElementAtOrDefault(idx); var path = Path("titles", idx); if (rating == null) return path.Keys("userRating", "rating").Undefined(); if (rating.Error) return path.Keys("userRating", "rating").Error(rating.ErrorMessage); return path .Ref("titlesById", rating.TitleId.ToString()); }); return Complete(results); }; Get["titlesById[{ranges:titleIds}]['rating', 'userRating', 'titleId']"] = async parameters => { List<int> titleIds = parameters.titleIds; var ratings = await ratingService.GetRatingsAsync(titleIds.Select(x => Guid.NewGuid()), userId); var results = titleIds.Select(titleId => { var rating = ratings.ElementAtOrDefault(titleId); var path = Path("titlesById", titleId); if (rating == null) return path.Keys("userRating", "rating").Undefined(); if (rating.Error) return path.Keys("userRating", "rating").Error(rating.ErrorMessage); return path .Key("userRating").Atom(rating.UserRating, TimeSpan.FromSeconds(-3)) .Key("rating").Atom(rating.Rating) .Key("titleId").Atom(rating.TitleId); }); return Complete(results); }; Get["titlesById[{keys:ids}][{keys:props}]"] = async parameters => { KeySet idsSet = parameters.ids; KeySet propsSet = parameters.props; var ids = idsSet.Select(x => Guid.Parse(x.ToString())); var ratings = await ratingService.GetRatingsAsync(ids, userId); var results = ids.Select(titleId => { var rating = ratings.SingleOrDefault(r => r.TitleId == titleId); var path = Path("titlesById", titleId.ToString()); if (rating == null) return path.Keys("userRating", "rating").Undefined(); if (rating.Error) return path.Keys("userRating", "rating").Error(rating.ErrorMessage); return path .Key("userRating").Atom(rating.UserRating, TimeSpan.FromSeconds(-3)) .Key("rating").Atom(rating.Rating); }); return Complete(results); }; Get["genrelist[{integers:indices}].name"] = async parameters => { var genreResults = await recommendationService.GetGenreListAsync(userId); List<int> indices = parameters.indices; var results = indices.Select(index => { var genre = genreResults.ElementAtOrDefault(index); return genre != null ? Path("genrelist", index, "name").Atom(genre.Name) : Path("genrelist", index).Undefined(); }); return Complete(results); }; Get["genrelist.mylist"] = async _ => { var genreResults = await recommendationService.GetGenreListAsync(userId); var myList = genreResults.SingleOrDefault(g => g.IsMyList); var index = genreResults.IndexOf(myList); return myList != null ? Complete(Path("genrelist", "mylist").Ref("genrelist", index)) : Error("myList missing from genrelist"); }; }