mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-12 14:09:12 +08:00
14 lines
295 B
Dart
14 lines
295 B
Dart
import 'dart:async';
|
|
import 'package:journal/note.dart';
|
|
|
|
abstract class NoteRepository {
|
|
// TODO: Better error message!
|
|
Future<bool> sync();
|
|
|
|
Future<bool> addNote(Note note);
|
|
Future<bool> updateNote(Note note);
|
|
Future<bool> removeNote(Note note);
|
|
|
|
Future<List<Note>> listNotes();
|
|
}
|