16 lines
442 B
Dart
16 lines
442 B
Dart
import 'package:news/utils/api.dart';
|
|
import 'package:news/utils/strings.dart';
|
|
|
|
class SurveyQuestionRemoteDataSource {
|
|
Future<dynamic> getSurveyQuestions({required String langId}) async {
|
|
try {
|
|
final body = {LANGUAGE_ID: langId};
|
|
final result = await Api.sendApiRequest(body: body, url: Api.getQueApi);
|
|
|
|
return result;
|
|
} catch (e) {
|
|
throw ApiMessageAndCodeException(errorMessage: e.toString());
|
|
}
|
|
}
|
|
}
|