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

com.evento.common.messaging.consumer.EventFetchResponse Maven / Gradle / Ivy

The newest version!
package com.evento.common.messaging.consumer;

import com.evento.common.modeling.messaging.dto.PublishedEvent;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * EventFetchResponse is a class that represents a response containing a list of published events.
 * It implements the Serializable interface to allow the objects of this class to be serialized.
 */
public class EventFetchResponse implements Serializable {
	private ArrayList events;

	/**
	 * EventFetchResponse is a constructor for creating an instance of the EventFetchResponse class.
	 * This class represents a response containing a list of published events.
	 * It implements the Serializable interface to allow the objects of this class to be serialized.
	 */
	public EventFetchResponse() {
	}

	/**
	 * EventFetchResponse is a class that represents a response containing a list of published events.
	 *
	 * @param events The list of published events.
	 */
	public EventFetchResponse(ArrayList events) {
		this.events = events;
	}

	/**
	 * Retrieves a list of published events.
	 *
	 * @return The list of published events.
	 */
	public ArrayList getEvents() {
		return events;
	}

	/**
	 * Sets the list of published events.
	 * 

* This method sets the list of published events in the EventFetchResponse class. * The list of events is provided as an argument to the method and assigned to the "events" member variable. * * @param events The list of published events to be set. */ public void setEvents(ArrayList events) { this.events = events; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy