/*
 * Copyright (c) 2010-2026 Contributors to the openHAB project
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package org.openhab.binding.livisismarthome.internal.listener;

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.openhab.binding.livisismarthome.internal.client.api.entity.device.DeviceDTO;
import org.openhab.binding.livisismarthome.internal.client.api.entity.event.EventDTO;

/**
 * The {@link DeviceStatusListener} is called, when {@link DeviceDTO}s are added, removed or changed.
 *
 * @author Oliver Kuhl - Initial contribution
 */
@NonNullByDefault
public interface DeviceStatusListener {

    /**
     * This method is called whenever the state of the given {@link DeviceDTO} has changed.
     *
     * @param device The device which received the state update.
     */
    void onDeviceStateChanged(DeviceDTO device);

    /**
     * This method is called whenever the state of a {@link DeviceDTO} is changed by the given {@link EventDTO}.
     *
     * @param device device
     * @param event event
     */
    void onDeviceStateChanged(DeviceDTO device, EventDTO event);
}
