from empire.python.typings import *
from empire.data_structures.struct import Struct


class CPUFreq(Struct):
    def __init__(self, raw: Union[NamedTuple, None] = None):
        super().__init__()
        self._current: float = -1.0
        self._min: float = -1.0
        self._max: float = -1.0
        super().__fields_decl_end__()
        self.assign_values(raw)

    @property
    def current(self) -> float:
        return self._current

    @property
    def min(self) -> float:
        return self._min

    @property
    def max(self) -> float:
        return self._max

from empire.python.typings import *
from empire.data_structures.struct import Struct


class CPUFreq(Struct):
    def __init__(self, raw: Union[NamedTuple, None] = None):
        super().__init__()
        self._current: float = -1.0
        self._min: float = -1.0
        self._max: float = -1.0
        super().__fields_decl_end__()
        self.assign_values(raw)

    @property
    def current(self) -> float:
        return self._current

    @property
    def min(self) -> float:
        return self._min

    @property
    def max(self) -> float:
        return self._max
