/// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="client">接続クライアント</param>
        public NativeBandClient(Native.IBandClient 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.IBandClient 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());
        }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public NativeBandPersonalizationManager(Native.IBandClient client)
 {
     this.manager = client.PersonalizationManager;
 }
Beispiel #4
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="client">接続クライアント</param>
 public NativeBandTileManager(Native.IBandClient client)
 {
     this.manager = client.TileManager;
 }
Beispiel #5
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="client">接続クライアント</param>
 public NativeBandNotificationManager(Native.IBandClient client)
 {
     this.manager = client.NotificationManager;
 }