<reponame>luther38/NetworkMonitor

from typing import List

from networkmonitor.src.collections import Nodes, Configuration


class IConfig:
    """
    IConfig is a interface to be used with the configuration loader.
    This acts as a template for how the Config works.
    Once this is filled in call ConfigContext and pass this in
    """

    def __init__(self, argPathConfig:str, argNewConfig:bool = False):
        self.argPathConfig:str      = argPathConfig
        self.argNewConfig:bool      = argNewConfig

        #self.configuration:Configuration
        #self.sleepTimer:int     = -1
        #self.nodes:List[Nodes]  = []
        pass

    def ReadConfig(self):
        """
        Reads the configuration file stored in memory and processes what it finds.
        """
        pass

    def NewConfig(self):
        """
        When requested we will generated a new configuration file 
        """
        pass 

from typing import List

from networkmonitor.src.collections import Nodes, Configuration


class IConfig:
    """
    IConfig is a interface to be used with the configuration loader.
    This acts as a template for how the Config works.
    Once this is filled in call ConfigContext and pass this in
    """

    def __init__(self, argPathConfig:str, argNewConfig:bool = False):
        self.argPathConfig:str      = argPathConfig
        self.argNewConfig:bool      = argNewConfig

        #self.configuration:Configuration
        #self.sleepTimer:int     = -1
        #self.nodes:List[Nodes]  = []
        pass

    def ReadConfig(self):
        """
        Reads the configuration file stored in memory and processes what it finds.
        """
        pass

    def NewConfig(self):
        """
        When requested we will generated a new configuration file 
        """
        pass
IConfig is a interface to be used with the configuration loader.     This acts as a template for how the Config works.     Once this is filled in call ConfigContext and pass this in #self.configuration:Configuration #self.sleepTimer:int     = -1 #self.nodes:List[Nodes]  = [] Reads the configuration file stored in memory and processes what it finds. When requested we will generated a new configuration file