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

#include "light.hpp"
#include "logger.hpp"

static const char* TAG = "Light";

Light::Light()
    : m_isInitialized(false)
{
}

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

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

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

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

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