/// <summary> /// Get StateObject value as HardwareDevice /// </summary> public static HardwareDevice AsHWMonitorHardwareDevice(this StateObjectNotifier stateObjectNotifier) { return(stateObjectNotifier.Value.GetValue <HardwareDevice>()); }
/// <summary> /// Get StateObject value as DiskDrive /// </summary> public static DiskDrive AsHWMonitorDiskDrive(this StateObjectNotifier stateObjectNotifier) { return(stateObjectNotifier.Value.GetValue <DiskDrive>()); }
/// <summary> /// Get StateObject value as BatteryState /// </summary> public static BatteryState AsBatteryCheckerBatteryState(this StateObjectNotifier stateObjectNotifier) { return(stateObjectNotifier.Value.GetValue <BatteryState>()); }