From 28fded57636eeaf9ca6d1cfdf2c8cced88c8e43e Mon Sep 17 00:00:00 2001 From: Maximilien LEDOUX Date: Sat, 5 Mar 2022 17:00:05 +0100 Subject: [PATCH] =?UTF-8?q?Syst=C3=A8me=20de=20synchronisation=20de=20l'in?= =?UTF-8?q?formation=20entre=20FileFrontEnd<>StorBackEnd=20->=20cr=C3=A9at?= =?UTF-8?q?ion=20de=20Repository=20et=20JsonRepository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lightcontainer/storage/JsonRepository.java | 15 +++++++++++++++ .../java/lightcontainer/storage/Repository.java | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 app/src/main/java/lightcontainer/storage/JsonRepository.java create mode 100644 app/src/main/java/lightcontainer/storage/Repository.java diff --git a/app/src/main/java/lightcontainer/storage/JsonRepository.java b/app/src/main/java/lightcontainer/storage/JsonRepository.java new file mode 100644 index 0000000..a002404 --- /dev/null +++ b/app/src/main/java/lightcontainer/storage/JsonRepository.java @@ -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; + } +} diff --git a/app/src/main/java/lightcontainer/storage/Repository.java b/app/src/main/java/lightcontainer/storage/Repository.java new file mode 100644 index 0000000..79f19fd --- /dev/null +++ b/app/src/main/java/lightcontainer/storage/Repository.java @@ -0,0 +1,8 @@ +package lightcontainer.storage; + +public interface Repository { + + void save(String fileName, AppData data); + + AppData load(String fileName); +}