-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
lib/features/search_screen/data/source/suggestion_datasoruce.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import 'package:youtube/core/utils/enums.dart'; | ||
|
||
abstract interface class SuggestionDatasource { | ||
Future<Map<String, dynamic>> getSuggestionSearch(String query); | ||
|
||
Future<Map<String, dynamic>> getVideoInfo({ | ||
required TypeContent videoContent, | ||
required String? videoId, | ||
}); | ||
|
||
Future<Map<String, dynamic>> getSearchVideo({ | ||
required String q, | ||
bool refresh = false, | ||
String? orderBy, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
lib/features/search_screen/domain/repo/search_screen_repo.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import 'package:youtube/core/utils/enums.dart'; | ||
|
||
abstract interface class SearchScreenRepo { | ||
Future<Map<String, dynamic>> getSuggestionSearch(String query); | ||
|
||
Future<Map<String, dynamic>> getVideoInfo({ | ||
required TypeContent videoContent, | ||
required String? videoId, | ||
}); | ||
|
||
Future<Map<String, dynamic>> getSearchVideo({ | ||
required String q, | ||
bool refresh = false, | ||
String? orderBy, | ||
}); | ||
} |