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

pl.fhframework.events.IClientDataHandler Maven / Gradle / Ivy

package pl.fhframework.events;

/**
 * Created by pawel.ruta on 2018-11-05.
 */

import pl.fhframework.core.model.dto.client.AbstractClientMessage;

import java.util.Objects;

public interface IClientDataHandler {
    void handleClientData(T clientData);

    String getSupportedType();

    String getServiceId();

    default boolean isHandling(T clientData) {
        return Objects.equals(clientData.getServiceId(), getServiceId()) &&
                Objects.equals(clientData.getType(), getSupportedType());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy