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

org.telegram.bot.kernel.database.DatabaseManager Maven / Gradle / Ivy

There is a newer version: 66.2
Show newest version
package org.telegram.bot.kernel.database;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.telegram.bot.structure.Chat;
import org.telegram.bot.structure.IUser;

import java.util.Map;

/**
 * @author Ruben Bermudez
 * @version 1.0
 * @brief TODO
 * @date 11 of April of 2016
 */
public interface DatabaseManager {
    @Nullable Chat getChatById(int chatId);
    @Nullable IUser getUserById(int userId);
    @NotNull Map getDifferencesData();
    boolean updateDifferencesData(int botId, int pts, int date, int seq);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy