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

com.github.sseserver.remote.RemoteResponseMessage Maven / Gradle / Ivy

There is a newer version: 1.2.19
Show newest version
package com.github.sseserver.remote;

import com.github.sseserver.qos.Message;

import java.io.Serializable;
import java.util.Collection;

public class RemoteResponseMessage implements Message {
    private String id;
    private String remoteMessageRepositoryId;

    private String eventName;
    private Object body;
    private int filters;

    private String listenerName;
    private Collection tenantIdList;
    private Collection userIdList;
    private Collection accessTokenList;
    private Collection channelList;

    public RemoteResponseMessage() {
    }

    public String getRemoteMessageRepositoryId() {
        return remoteMessageRepositoryId;
    }

    public void setRemoteMessageRepositoryId(String remoteMessageRepositoryId) {
        this.remoteMessageRepositoryId = remoteMessageRepositoryId;
    }

    @Override
    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    @Override
    public int getFilters() {
        return filters;
    }

    public void setFilters(int filters) {
        this.filters = filters;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof Message)) {
            return false;
        }
        Message that = (Message) o;
        if (id == null) {
            return false;
        } else {
            return id.equals(that.getId());
        }
    }

    @Override
    public int hashCode() {
        return id == null ? super.hashCode() : id.hashCode();
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Override
    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    @Override
    public String getListenerName() {
        return listenerName;
    }

    public void setListenerName(String listenerName) {
        this.listenerName = listenerName;
    }

    @Override
    public Collection getTenantIdList() {
        return tenantIdList;
    }

    public void setTenantIdList(Collection tenantIdList) {
        this.tenantIdList = tenantIdList;
    }

    @Override
    public Collection getUserIdList() {
        return userIdList;
    }

    public void setUserIdList(Collection userIdList) {
        this.userIdList = userIdList;
    }

    @Override
    public Collection getAccessTokenList() {
        return accessTokenList;
    }

    public void setAccessTokenList(Collection accessTokenList) {
        this.accessTokenList = accessTokenList;
    }

    @Override
    public Collection getChannelList() {
        return channelList;
    }

    public void setChannelList(Collection channelList) {
        this.channelList = channelList;
    }

    @Override
    public String toString() {
        return "RemoteResponseMessage{" +
                "id='" + id + '\'' +
                ", remoteMessageRepositoryId='" + remoteMessageRepositoryId + '\'' +
                ", eventName='" + eventName + '\'' +
                ", body=" + body +
                ", filters=" + filters +
                ", listenerName='" + listenerName + '\'' +
                ", tenantIdList=" + tenantIdList +
                ", userIdList=" + userIdList +
                ", accessTokenList=" + accessTokenList +
                ", channelList=" + channelList +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy