getAll method
Future<HeliumPagedResponse<List<HeliumHotspot> > >
getAll({
- Set<
HeliumHotspotMode> modeFilter = const {},
Lists known hotspots as registered on the blockchain.
The modeFilter
parameter can be used to filter hotspots by how they
were added to the blockchain.
Implementation
Future<HeliumPagedResponse<List<HeliumHotspot>>> getAll(
{Set<HeliumHotspotMode> modeFilter = const {}}) async {
return _client._doPagedRequest(HeliumPagedRequest(
path: '/v1/hotspots',
parameters: {
'filter_modes': modeFilter.map((e) => e.value),
},
extractResponse: (json) =>
HeliumRequest.mapDataList(json, (h) => HeliumHotspot.fromJson(h)),
));
}