Files
elcaribe/news-app/lib/data/repositories/NewsComment/FlagComment/flagCommRepository.dart

20 lines
701 B
Dart

import 'package:news/data/repositories/NewsComment/FlagComment/flagCommRemoteDataSource.dart';
class SetFlagRepository {
static final SetFlagRepository _setFlagRepository = SetFlagRepository._internal();
late SetFlagRemoteDataSource _setFlagRemoteDataSource;
factory SetFlagRepository() {
_setFlagRepository._setFlagRemoteDataSource = SetFlagRemoteDataSource();
return _setFlagRepository;
}
SetFlagRepository._internal();
Future<Map<String, dynamic>> setFlag({required String commId, required String newsId, required String message}) async {
final result = await _setFlagRemoteDataSource.setFlag(commId: commId, newsId: newsId, message: message);
return result;
}
}