Beispiel #1
0
 public FitbitProviderUpdateEventHandler(
     IFitbitClient fitbitClient,
     IFitbitTokenService fitbitTokenService,
     IIoMTDataPublisher iomtDataPublisher,
     IFhirClient fhirClient,
     ILogger <FitbitProviderUpdateEventHandler> logger)
 {
     _fitbitClient       = fitbitClient ?? throw new ArgumentNullException(nameof(fitbitClient));
     _fitbitTokenService = fitbitTokenService ?? throw new ArgumentNullException(nameof(fitbitTokenService));
     _iomtDataPublisher  = iomtDataPublisher ?? throw new ArgumentNullException(nameof(iomtDataPublisher));
     _fhirClient         = fhirClient ?? throw new ArgumentNullException(nameof(fhirClient));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Beispiel #2
0
 public FitbitService(
     IEventPublisher eventPublisher,
     IOperationContext operationContext,
     IFitbitClient fitbitClient,
     IFitbitAuthenticationClient fitbitAuthClient,
     IDateTimeProvider dateTimeProvider,
     IOptions <FitbitSettings> fitBitSettings)
 {
     _eventPublisher   = eventPublisher;
     _operationContext = operationContext;
     _fitbitClient     = fitbitClient;
     _fitbitAuthClient = fitbitAuthClient;
     _dateTimeProvider = dateTimeProvider;
     _fitbitSettings   = fitBitSettings.Value;
 }
 public FitbitAuthenticator(ITokenService tokenService, IFitbitClient fitbitClient)
 {
     _tokenService = tokenService;
     _fitbitClient = fitbitClient;
 }
 public FitbitClientQueryAdapter(IFitbitClient fitbitClient, ILogger logger)
 {
     _fitbitClient = fitbitClient;
     _logger       = logger;
 }