Skip to content

Instantly share code, notes, and snippets.

@AbedElazizShe
Created February 1, 2022 16:23
Show Gist options
  • Save AbedElazizShe/64995f261f6588f5462ebd0c12230528 to your computer and use it in GitHub Desktop.
Save AbedElazizShe/64995f261f6588f5462ebd0c12230528 to your computer and use it in GitHub Desktop.
import 'package:domain/src/models/article/article_model.dart';
abstract class ArticlesRepository {
Future<List<ArticleModel>> getMostEmailedArticles();
Future<List<ArticleModel>> getMostViewedArticles();
Future<List<ArticleModel>> getMostSharedArticles();
Future<int> saveArticles(String articles, String type);
Future<List<ArticleModel>> getCachedArticles(String type);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment