package com.priusis.client.service.data;

import com.priusis.client.service.AttributesUpdateListener;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Created by priusis on 23.02.17.
 */
@Data
@AllArgsConstructor
public class AttributesUpdateSubscription {

    private String deviceNameFilter;
    private AttributesUpdateListener listener;

    public boolean matches(String deviceName) {
        return deviceName.matches(deviceNameFilter);
    }
}
