2023-01-16 21:31:17 +00:00
|
|
|
import 'package:result_monad/result_monad.dart';
|
|
|
|
|
|
|
|
import '../../models/connection.dart';
|
|
|
|
import '../../models/exec_error.dart';
|
|
|
|
|
2023-04-19 00:33:09 +00:00
|
|
|
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);
|
2023-01-16 21:31:17 +00:00
|
|
|
}
|