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

com.pryv.interfaces.GetEventsCallback Maven / Gradle / Ivy

package com.pryv.interfaces;

import com.pryv.model.Event;

import java.util.List;
import java.util.Map;

public interface GetEventsCallback {

    /**
     * Used for cache callback
     *
     * @param events
     * @param eventDeletions
     */
    void cacheCallback(List events, Map eventDeletions);

    /**
     * Callback used to indicate an error on cache operation
     *
     * @param errorMessage
     */
    void onCacheError(String errorMessage);

    /**
     * used for api callback
     *
     * @param events
     * @param eventDeletions
     * @param serverTime
     */
    void apiCallback(List events, Map eventDeletions, Double serverTime);

    /**
     * when there is an error
     *
     * @param errorMessage
     * @param serverTime
     */
    void onApiError(String errorMessage, Double serverTime);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy