Exemplo n.º 1
0
        /// <summary>Initializes a new instance of the <see cref="FitbitService"/> class.</summary>
        /// <param name="breatheServices">The breathe services.</param>
        public FitbitService(IBreatheServices breatheServices)
        {
            this.breatheServices = breatheServices;

            this.api = new BreatheFitBitApi(
                "fitbit",
                FitbitSettings.ClientID,
                FitbitSettings.ClientSecret,
                false,
                FitbitSettings.RedirectUrl)
            {
                Scopes           = FitbitSettings.Scope.Split(' ').ToArray(),
                AutoAuthenticate = false
            };
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MainViewModel"/> class.
 /// </summary>
 /// <param name="breatheServices">
 /// The breathe services.
 /// </param>
 public MainViewModel(IBreatheServices breatheServices)
     : base(breatheServices)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BluetoothViewModel"/> class.
 /// </summary>
 /// <param name="breatheServices">
 /// The breathe services.
 /// </param>
 public BluetoothViewModel(IBreatheServices breatheServices)
     : base(breatheServices)
 {
     this.bluetoothManager = this.BreatheServices.BluetoothManager;
     this.scanResultsLock  = new object();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseViewModel"/> class.
 /// </summary>
 /// <param name="breatheServices">
 /// The breathe services.
 /// </param>
 public BaseViewModel(IBreatheServices breatheServices)
 {
     this.BreatheServices = breatheServices;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FitbitViewModel"/> class.
 /// </summary>
 /// <param name="breatheServices">
 /// The breathe services.
 /// </param>
 public FitbitViewModel(IBreatheServices breatheServices)
     : base(breatheServices)
 {
 }