コード例 #1
0
ファイル: CheckoutController.cs プロジェクト: lulzzz/Klarna
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public UserController(IUserService userService, IOutloanService outloanService, IReviewService reviewService, IRecommendationService recommendationService)
 {
     _userService           = userService;
     _outloanService        = outloanService;
     _reviewService         = reviewService;
     _recommendationService = recommendationService;
 }
コード例 #5
0
 public UsersController(IUserService userService, IReviewService reviewService, IRecommendationService recommendationService)
 {
     _userService           = userService;
     _reviewService         = reviewService;
     _recommendationService = recommendationService;
     _userService.OnStart();
 }
コード例 #6
0
ファイル: UsersController.cs プロジェクト: eddast/T-302-HONN
 /// <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;
 }
コード例 #7
0
 public RecommendationsController(
     IRecommendationService recommendationService,
     IEnumParseService enumParseService)
 {
     this.recommendationService = recommendationService;
     this.enumParseService      = enumParseService;
 }
コード例 #8
0
 public RecommendationsController(IDoctorService doctorService, IRecommendationService recommendationService,
     IPatientService patientService)
 {
     _doctorService = doctorService;
     _recommendationService = recommendationService;
     _patientService = patientService;
 }
コード例 #9
0
 public RecommendationViewController(ILogger <RecommendationViewController> logger, IRecommendationService recommendationService, ICustomerProfileService customerProfileService, IPromotionService promotionService)
 {
     _logger = logger;
     _recommendationService  = recommendationService;
     _customerProfileService = customerProfileService;
     _promotionService       = promotionService;
 }
コード例 #10
0
 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;
 }
コード例 #12
0
 public PackageController(IsInEditModeAccessor isInEditModeAccessor, CatalogEntryViewModelFactory viewModelFactory, IRecommendationService recommendationService, ReferenceConverter referenceConverter)
 {
     _isInEditMode          = isInEditModeAccessor();
     _viewModelFactory      = viewModelFactory;
     _recommendationService = recommendationService;
     _referenceConverter    = referenceConverter;
 }
コード例 #13
0
 public SannsynRecommendedProductsService(ITrackedRecommendationService trackedRecommendationService, IRecommendationService recommendationService, ReferenceConverter referenceConverter, IContentRepository contentRepository)
 {
     _trackedRecommendationService = trackedRecommendationService;
     _recommendationService        = recommendationService;
     _referenceConverter           = referenceConverter;
     _contentRepository            = contentRepository;
 }
コード例 #14
0
 public PestDetectedHandler(IRecommendationService recommendationService, IFieldService fieldService, IMessageService messageService, IPestService pestService)
 {
     _recommendationService = recommendationService;
     _fieldService          = fieldService;
     _messageService        = messageService;
     _pestService           = pestService;
 }
コード例 #15
0
 public LibraryController(IBookService bookService, IUserService userService, ILoanService loanService, IReviewService reviewService, IRecommendationService recommendationService)
 {
     _bookService           = bookService;
     _userService           = userService;
     _loanService           = loanService;
     _reviewService         = reviewService;
     _recommendationService = recommendationService;
 }
コード例 #16
0
 public RecommendationApiController(
     ISpeciesService speciesService,
     IRegionService regionService,
     IProductionMethodService productionMethodService,
     IRecommendationService recommendationService)
     : base(speciesService, productionMethodService, regionService, recommendationService)
 {
 }
コード例 #17
0
 /// <inheritdoc />
 public EventController(IEventService eventService, ILogger <EventController> logger,
                        IRecommendationService recommendationService, IWorkQueue workQueue)
 {
     EventService          = eventService;
     Logger                = logger;
     RecommendationService = recommendationService;
     WorkQueue             = workQueue;
 }
コード例 #18
0
ファイル: HistoryController.cs プロジェクト: eluninm/tmk
 public HistoryController(IConversationService conversationService, IRecommendationService recommendationService, IPatientService patientService, SiteUserManager userManager, IDoctorService doctorService)
 {
     _conversationService = conversationService;
     _recommendationService = recommendationService;
     _patientService = patientService;
     _userManager = userManager;
     _doctorService = doctorService;
 }
コード例 #19
0
ファイル: LibraryController.cs プロジェクト: eyrunm/HONN
 public LibraryController(IUserService userService, IBookService bookService, IRecommendationService recommendationService,
                          IReportingService reportingService, IReviewService reviewService)
 {
     _userService           = userService;
     _bookService           = bookService;
     _recommendationService = recommendationService;
     _reportingService      = reportingService;
     _reviewService         = reviewService;
 }
コード例 #20
0
 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;
 }
コード例 #21
0
ファイル: CategoryController.cs プロジェクト: lulzzz/Klarna
 public CategoryController(
     SearchViewModelFactory viewModelFactory,
     IRecommendationService recommendationService,
     ReferenceConverter referenceConverter)
 {
     _viewModelFactory      = viewModelFactory;
     _recommendationService = recommendationService;
     _referenceConverter    = referenceConverter;
 }
コード例 #22
0
 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;
 }
コード例 #24
0
 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;
 }
コード例 #25
0
 public HomeController(IPostRepository postrepo,
                       IMapper mapper,
                       IRecommendationService recommendationService,
                       UserManager <ApplicationUser> userManager)
 {
     _postrepo = postrepo;
     _mapper   = mapper;
     _recommendationService = recommendationService;
     _userManager           = userManager;
 }
コード例 #26
0
ファイル: AnalysisController.cs プロジェクト: joyoon/mb
 public AnalysisController(
     ISpeciesService speciesService,
     IRegionService regionService,
     IProductionMethodService productionMethodService,
     IRecommendationService recommendationService,
     IBodyOfWaterService bodyOfWaterService,
     ICriteria2Service criteriaService)
     : base(speciesService, productionMethodService, regionService, recommendationService, bodyOfWaterService, criteriaService)
 {
 }
コード例 #27
0
 /// <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;
 }
コード例 #28
0
 public OrderConfirmationController(
     ConfirmationService confirmationService,
     AddressBookService addressBookService,
     IRecommendationService recommendationService,
     CustomerContextFacade customerContextFacade,
     IOrderGroupTotalsCalculator orderGroupTotalsCalculator)
     : base(confirmationService, addressBookService, customerContextFacade, orderGroupTotalsCalculator)
 {
     _recommendationService = recommendationService;
 }
コード例 #29
0
 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;
 }
コード例 #30
0
 public UsersController(
     IFriendsService friendsService,
     IReviewsService reviewsService,
     IRecommendationService recommendationService,
     IBorrowInfosService borrowInfosService)
 {
     FriendsService        = friendsService;
     ReviewsService        = reviewsService;
     RecommendationService = recommendationService;
     BorrowInfosService    = borrowInfosService;
 }
コード例 #31
0
        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"));
            };
        }
コード例 #32
0
 public CartController(
     ICartService cartService,
     IOrderRepository orderRepository,
     IRecommendationService recommendationService,
     CartViewModelFactory cartViewModelFactory)
 {
     _cartService           = cartService;
     _orderRepository       = orderRepository;
     _recommendationService = recommendationService;
     _cartViewModelFactory  = cartViewModelFactory;
 }
コード例 #33
0
 /// <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);
 }
コード例 #34
0
ファイル: ApiControllerBase.cs プロジェクト: joyoon/mb
 public ApiControllerBase(
     ISpeciesService speciesService,
     IProductionMethodService productionMethodService,
     IRegionService regionService,
     IRecommendationService recommendationService)
 {
     this.speciesService = speciesService;
     this.productionMethodService = productionMethodService;
     this.regionService = regionService;
     this.recommendationService = recommendationService;
 }
コード例 #35
0
 public CmsTrackingService(IContentLoader contentLoader,
                           ITrackingService trackingService,
                           IContextModeResolver contextModeResolver,
                           ISiteDefinitionResolver siteDefinitionResolver,
                           IRecommendationService personalizationRecommendationService)
 {
     _contentLoader          = contentLoader;
     _trackingService        = trackingService;
     _contextModeResolver    = contextModeResolver;
     _siteDefinitionResolver = siteDefinitionResolver;
     _personalizationRecommendationService = personalizationRecommendationService;
 }
コード例 #36
0
ファイル: ControllerBase.cs プロジェクト: joyoon/mb
 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;
 }
コード例 #37
0
        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");
            };
        }
コード例 #38
0
 public RecommendationController(IRecommendationService recommendationService)
 {
     _recommendationService = recommendationService;
 }
コード例 #39
0
 public RecommendationController(IRecommendationService recommendationService, IPatientService patientService)
 {
     _recommendationService = recommendationService;
     _patientService = patientService;
 }
コード例 #40
0
ファイル: HomeController.cs プロジェクト: ralescano/castle
		public HomeController(IRecommendationService recommendationService, CategoryService categoryService)
		{
			this.recommendationService = recommendationService;
			this.categoryService = categoryService;
		}
コード例 #41
0
ファイル: PatientController.cs プロジェクト: eluninm/tmk
 public PatientController(IRecommendationService recommendationService, IConversationService conversationService, IPatientService patientService)
 {
     _recommendationService = recommendationService;
     _conversationService = conversationService;
     _patientService = patientService;
 }
コード例 #42
0
        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");
            };
        }