feat(radio): add nearby discovery and paged search
This commit is contained in:
@@ -147,7 +147,7 @@ class FakeServicioRadio extends ServicioRadio {
|
||||
error is Exception ? error : Exception(error.toString());
|
||||
|
||||
@override
|
||||
Future<List<Emisora>> obtenerPopulares({int limit = 30}) async {
|
||||
Future<List<Emisora>> obtenerPopulares({int limit = 30, int offset = 0}) async {
|
||||
final llamada = obtenerPopularesCalls++;
|
||||
if (llamada < _erroresPopularesPorLlamada.length) {
|
||||
throw _normalizarError(_erroresPopularesPorLlamada[llamada]);
|
||||
@@ -177,8 +177,9 @@ class FakeServicioRadio extends ServicioRadio {
|
||||
String? idioma,
|
||||
String? tag,
|
||||
int limit = 30,
|
||||
int offset = 0,
|
||||
}) async {
|
||||
return _busqueda.take(limit).toList();
|
||||
return _busqueda.skip(offset).take(limit).toList();
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user