All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bq.corbel.event.DeviceEvent Maven / Gradle / Ivy

There is a newer version: 1.35.0
Show newest version
package com.bq.corbel.event;

import com.bq.corbel.eventbus.EventWithSpecificDomain;

/**
 * Created by Francisco Sanchez on 14/10/15.
 */
public class DeviceEvent extends EventWithSpecificDomain {

    public enum Type {
        CREATED,
        UPDATED,
        DELETED
    }

    private Type type;
    private String deviceId;
    private String userId;
    private String deviceType;
    private String deviceName;


    public DeviceEvent() {}

    public DeviceEvent(Type type, String domain, String deviceId, String userId, String deviceType, String deviceName) {
        super(domain);
        this.type = type;
        this.deviceId = deviceId;
        this.userId = userId;
        this.deviceType = deviceType;
        this.deviceName = deviceName;
    }

    public DeviceEvent(Type type, String domainId, String deviceId, String userId) {
        this(type, domainId, deviceId, userId, null, null);
    }

    public Type getType() {
        return type;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public String getDeviceName() {
        return deviceName;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy