Skip to content
Snippets Groups Projects
Commit 747ce095 authored by Boux's avatar Boux
Browse files

Add - Ajout de quelques déclarations dans l'interface avec la base de donnée.

parent 7f2c3df4
Branches
1 merge request!1Database
......@@ -2,10 +2,19 @@ package com.example.qrcode;
import android.database.SQLException;
public interface IDatabase {
// stocker des messages en fonction de pseudo cible
// Messages
void addMessage(Message message) throws SQLException;
Message getMessageByID(int id) throws SQLException;
Message[] getMessagesByContact(int id) throws SQLException;
Message getMessageByImageId(int id) throws SQLException;
// stocker image (bin) stocker en fonction du pseudo cible ET pseudo emmeteur.
// Images
void addImage(DBImage image) throws SQLException;
DBImage[] getAllImages() throws SQLException;
DBImage getImageByMessageId(int id) throws SQLException;
// Contact
void addContact(Contact contact) throws SQLException;
Contact[] getAllContacts() throws SQLException;
Contact getContactById(int id) throws SQLException;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment