2024-09-24 14:50:21 +02:00
|
|
|
import 'dart:typed_data';
|
|
|
|
|
|
2025-03-12 19:26:56 +05:30
|
|
|
import 'package:immich_mobile/domain/models/user.model.dart';
|
2024-09-24 14:50:21 +02:00
|
|
|
|
|
|
|
|
abstract interface class IUserApiRepository {
|
2025-03-14 08:50:26 +05:30
|
|
|
Future<UserDto?> getMyUser();
|
|
|
|
|
|
2025-03-12 19:26:56 +05:30
|
|
|
Future<List<UserDto>> getAll();
|
2025-03-14 08:50:26 +05:30
|
|
|
|
|
|
|
|
/// Saves the [data] in the server and uses it as the current users profile image
|
|
|
|
|
Future<String> createProfileImage({
|
2024-09-24 14:50:21 +02:00
|
|
|
required String name,
|
|
|
|
|
required Uint8List data,
|
|
|
|
|
});
|
|
|
|
|
}
|