/**
 * @file main_hub_apis.cpp
 * @brief MainHubApis component implementation
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "main_hub_apis.hpp"
#include "logger.hpp"

static const char* TAG = "MainHubApis";

MainHubApis::MainHubApis()
    : m_isInitialized(false)
{
}

MainHubApis::~MainHubApis()
{
    deinitialize();
}

bool MainHubApis::initialize()
{
    // TODO: Implement initialization
    m_isInitialized = true;
    ASF_LOGI(TAG, 4500, asf::logger::Criticality::LOW, "MainHubApis initialized successfully");
    return true;
}

bool MainHubApis::deinitialize()
{
    if (!m_isInitialized)
    {
        return false;
    }

    // TODO: Implement deinitialization
    m_isInitialized = false;
    return true;
}

bool MainHubApis::isInitialized() const
{
    return m_isInitialized;
}
