Example #1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="client">接続クライアント</param>
        public NativeBandClient(Native.BandClient client)
        {
            this.client = client;

            App.Container.RegisterInstance <IBandSensorManager>(new NativeBandSensorManager(this.client), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandPersonalizationImageManager>(new NativeBandPersonalizationManager(this.client), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandTileImageManager>(new NativeBandTileManager(this.client), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandNotificationManager>(new NativeBandNotificationManager(this.client), new ContainerControlledLifetimeManager());
        }
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="client">iOS 用接続クライアント</param>
        public NativeBandSensorManager(Native.BandClient client)
        {
            this.manager = client.SensorManager;

            App.Container.RegisterInstance <IBandSensor <IBandAccelerometerReading> >(
                new NativeBandAcceleromerter(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandGyroscopeReading> >(
                new NativeBandGyroscope(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandHeartRateReading> >(
                new NativeBandHeartRateSensor(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandPedometerReading> >(
                new NativeBandPedometer(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandDistanceReading> >(
                new NativeBandDistanceSensor(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandSkinTemperatureReading> >(
                new NativeBandSkinTemperatureSensor(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandUVReading> >(
                new NativeBandUltravioletLightSensor(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandContactSensor>(
                new NativeBandContactSensor(manager), new ContainerControlledLifetimeManager());
            App.Container.RegisterInstance <IBandSensor <IBandCaloriesReading> >(
                new NativeBandCaloriesSensor(manager), new ContainerControlledLifetimeManager());
        }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="client">Band クライアント</param>
 public NativeBandInfo(Native.BandClient client)
 {
     this.name = (string)client.Name;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="client">接続クライアント</param>
 public NativeBandNotificationManager(Native.BandClient client)
 {
     this.manager = client.NotificationManager;
 }
Example #5
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="client">接続クライアント</param>
 public NativeBandTileManager(Native.BandClient client)
 {
     this.manager = client.TileManager;
 }
Example #6
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public NativeBandPersonalizationManager(Native.BandClient client)
 {
     this.manager = client.PersonalizationManager;
 }