move code to instantiate network devices to NetworkDeviceInstantiator class

This commit is contained in:
technyon
2024-08-18 09:15:30 +02:00
parent 0b423ee29d
commit 2d8ec7d8df
7 changed files with 186 additions and 152 deletions

View File

@@ -0,0 +1,12 @@
#pragma once
#include "../networkDevices/NetworkDevice.h"
#include "../enums/NetworkDeviceType.h"
#include <string>
#include <Preferences.h>
class NetworkDeviceInstantiator
{
public:
static NetworkDevice* Create(NetworkDeviceType networkDeviceType, String hostname, Preferences* preferences, IPConfiguration* ipConfiguration);
};