package ir.ac.aut.ceit.aolab.jlamp.rpi.model;

import ir.ac.aut.ceit.aolab.lamp_notification;
import org.kaaproject.kaa.client.notification.NotificationListener;

/**
 * Created by root on 5/17/16.
 */
public class DefaultNotificationListener implements NotificationListener {
	@Override
	public void onNotification(long l, lamp_notification lamp_notification) {
		Lamp.getLampById(lamp_notification.getId()).sendLampCommand(1);
		try {
			Thread.sleep(lamp_notification.getInterval() * 1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}

		Lamp.getLampById(lamp_notification.getId()).sendLampCommand(0);
	}
}

package ir.ac.aut.ceit.aolab.jlamp.rpi.model;

import ir.ac.aut.ceit.aolab.I1820.notification.I1820;

import org.kaaproject.kaa.client.notification.NotificationListener;

/**
 * Created by root on 5/17/16.
 */
public class DefaultNotificationListener implements NotificationListener {
    @Override
    public void onNotification(long l, I1820 i1820) {

    }
}

Improve default notification for supporting I1820 notifications.
Improve default notification for supporting I1820 notifications.
