forked from nus-cs2103-AY2021S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Storage.java
32 lines (23 loc) · 854 Bytes
/
Storage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package seedu.address.storage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import seedu.address.commons.exceptions.DataConversionException;
import seedu.address.model.ReadOnlyEventBook;
import seedu.address.model.ReadOnlyUserPrefs;
import seedu.address.model.UserPrefs;
/**
* API of the Storage component
*/
public interface Storage extends EventBookStorage, UserPrefsStorage {
@Override
Optional<UserPrefs> readUserPrefs() throws DataConversionException, IOException;
@Override
void saveUserPrefs(ReadOnlyUserPrefs userPrefs) throws IOException;
@Override
Path getEventBookFilePath();
@Override
Optional<ReadOnlyEventBook> readEventBook() throws DataConversionException, IOException;
@Override
void saveEventBook(ReadOnlyEventBook eventBook) throws IOException;
}