/// <summary>
 /// Initializes a new instance of the <see cref="MicrosoftServicePageViewModel" /> class.
 /// </summary>
 public MicrosoftServicePageViewModel()
 {
     ReadCharacteristic     = new GenericGattCharacteristicViewModel(Service.ReadCharacteristic);
     WriteCharacteristic    = new GenericGattCharacteristicViewModel(Service.WriteCharacteristic);
     NotifyCharacteristic   = new GenericGattCharacteristicViewModel(Service.NotifyCharacteristic);
     IndicateCharacteristic = new GenericGattCharacteristicViewModel(Service.IndicateCharacteristic);
     ReadLongCharacteristic = new GenericGattCharacteristicViewModel(Service.ReadLongCharacteristic);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CurrentTimeServicePageViewModel" /> class.
 /// </summary>
 public CurrentTimeServicePageViewModel()
 {
     CurrentTime = new GenericGattCharacteristicViewModel(Service.CurrentTime);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BloodPressureServicePageViewModel" /> class.
 /// </summary>
 public BloodPressureServicePageViewModel()
 {
     BloodPressureMeasurement = new GenericGattCharacteristicViewModel(Service.BloodPressureMeasurement);
     BloodPressureFeature     = new GenericGattCharacteristicViewModel(Service.BloodPressureFeature);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BatteryServicePageViewModel" /> class.
 /// </summary>
 public BatteryServicePageViewModel()
 {
     BatteryLevel = new GenericGattCharacteristicViewModel(Service.BatteryLevel);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertNotificationServicePageViewModel" /> class.
 /// </summary>
 public AlertNotificationServicePageViewModel()
 {
     NewAlert                      = new GenericGattCharacteristicViewModel(Service.NewAlert);
     UnreadAlertStatus             = new GenericGattCharacteristicViewModel(Service.UnreadAlertStatus);
     AlertNotificationControlPoint = new GenericGattCharacteristicViewModel(Service.AlertNotificationControlPoint);
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeartRateServicePageViewModel" /> class.
 /// </summary>
 public HeartRateServicePageViewModel()
 {
     HeartRateMeasurement = new GenericGattCharacteristicViewModel(Service.HeartRateMeasurement);
 }