You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
725 B
23 lines
725 B
3 years ago
|
import 'package:bytedesk_kefu/http/bytedesk_feedback_api.dart';
|
||
|
import 'package:bytedesk_kefu/model/helpCategory.dart';
|
||
|
import 'package:bytedesk_kefu/model/jsonResult.dart';
|
||
|
|
||
|
class FeedbackRepository {
|
||
|
final BytedeskFeedbackHttpApi bytedeskHttpApi = BytedeskFeedbackHttpApi();
|
||
|
|
||
|
FeedbackRepository();
|
||
|
|
||
|
Future<List<HelpCategory>> getHelpFeedbackCategories(String? uid) async {
|
||
|
return await bytedeskHttpApi.getHelpFeedbackCategories(uid);
|
||
|
}
|
||
|
|
||
|
Future<JsonResult> submitFeedback(
|
||
|
String? content, List<String>? imageUrls) async {
|
||
|
return await bytedeskHttpApi.submitFeedback(content, imageUrls);
|
||
|
}
|
||
|
|
||
|
Future<String> upload(String? filePath) async {
|
||
|
return await bytedeskHttpApi.upload(filePath);
|
||
|
}
|
||
|
}
|