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.
19 lines
573 B
19 lines
573 B
3 years ago
|
import 'package:bytedesk_kefu/http/bytedesk_faq_api.dart';
|
||
|
import 'package:bytedesk_kefu/model/helpArticle.dart';
|
||
|
import 'package:bytedesk_kefu/model/helpCategory.dart';
|
||
|
|
||
|
class HelpRepository {
|
||
|
//
|
||
|
final BytedeskFaqHttpApi bytedeskHttpApi = BytedeskFaqHttpApi();
|
||
|
|
||
|
HelpRepository();
|
||
|
|
||
|
Future<List<HelpCategory>> getHelpCategories(String? uid) async {
|
||
|
return await bytedeskHttpApi.getHelpSupportCategories(uid);
|
||
|
}
|
||
|
|
||
|
Future<List<HelpArticle>> getCategoryArticles(int? categoryId) async {
|
||
|
return await bytedeskHttpApi.getHelpSupportArticles(categoryId);
|
||
|
}
|
||
|
}
|