Système de synchronisation de l'information entre FileFrontEnd<>StorBackEnd -> création de Repository et JsonRepository
This commit is contained in:
parent
5e95cee500
commit
28fded5763
15
app/src/main/java/lightcontainer/storage/JsonRepository.java
Normal file
15
app/src/main/java/lightcontainer/storage/JsonRepository.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package lightcontainer.storage;
|
||||||
|
|
||||||
|
public class JsonRepository implements Repository {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void save(String fileName, AppData data) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AppData load(String fileName) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
8
app/src/main/java/lightcontainer/storage/Repository.java
Normal file
8
app/src/main/java/lightcontainer/storage/Repository.java
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package lightcontainer.storage;
|
||||||
|
|
||||||
|
public interface Repository {
|
||||||
|
|
||||||
|
void save(String fileName, AppData data);
|
||||||
|
|
||||||
|
AppData load(String fileName);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user