mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-19 15:13:31 +00:00
20 lines
492 B
Dart
20 lines
492 B
Dart
import 'package:result_monad/result_monad.dart';
|
|
|
|
import '../../models/connection.dart';
|
|
import '../../models/exec_error.dart';
|
|
|
|
abstract class IConnectionsRepo {
|
|
void clear();
|
|
|
|
bool upsertConnection(Connection connection);
|
|
|
|
Result<Connection, ExecError> getById(String id);
|
|
|
|
Result<Connection, ExecError> getByName(String name);
|
|
|
|
Result<Connection, ExecError> getByHandle(String handle);
|
|
|
|
List<Connection> getMyContacts();
|
|
|
|
List<Connection> getKnownUsersByName(String name);
|
|
}
|