![JAR search and dependency download from the Maven repository](/logo.png)
com.pryv.interfaces.EventsManager Maven / Gradle / Ivy
package com.pryv.interfaces;
import com.pryv.Filter;
import com.pryv.model.Event;
public interface EventsManager {
/**
* retrieve events
*
* @param filter optional filter parameters
* @param eventsCallback the callback for events retrieval
*/
void get(Filter filter, GetEventsCallback eventsCallback);
/**
* Create event
*
* @param newEvent the event to create
* @param eventsCallback the callback for event's creation, notifies success or failure
*/
void create(Event newEvent, EventsCallback eventsCallback);
/**
* Create an event with an attachment file
*
* @param newEventWithAttachment the event with an Attachment object
* @param eventsCallback the callback for event's creation, notifies success or failure
*/
void createWithAttachment(Event newEventWithAttachment, EventsCallback eventsCallback);
/**
* Delete Event
*
* @param eventToDelete the Event to delete.
* @param eventsCallback the callback for events deletion, notifies success or failure
*/
void delete(Event eventToDelete, EventsCallback eventsCallback);
/**
* Update Event.
*
* @param eventToUpdate Event object containing the updated fields.
* @param eventsCallback the callback for events update, notifies success or failure
*/
void update(Event eventToUpdate, EventsCallback eventsCallback);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy