/* * Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; namespace SafeExamBrowser.SystemComponents.Contracts.PowerSupply { /// /// Provides data about the power supply of the system. /// public interface IPowerSupplyStatus { /// /// Defines the current charge of the system battery: 0.0 means the battery is empty, 1.0 means it's fully charged. /// double BatteryCharge { get; } /// /// Defines the current charge status of the system battery. /// BatteryChargeStatus BatteryChargeStatus { get; } /// /// Defines the time remaining until the battery is empty. /// TimeSpan BatteryTimeRemaining { get; } /// /// Indicates whether the system is connected to the power grid. /// bool IsOnline { get; } } }