/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="BloodPressureServicePageViewModel" /> class. /// </summary> public BloodPressureServicePageViewModel() { BloodPressureMeasurement = new GenericGattCharacteristicViewModel(Service.BloodPressureMeasurement); BloodPressureFeature = new GenericGattCharacteristicViewModel(Service.BloodPressureFeature); }
/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="HeartRateServicePageViewModel" /> class. /// </summary> public HeartRateServicePageViewModel() { HeartRateMeasurement = new GenericGattCharacteristicViewModel(Service.HeartRateMeasurement); }