getDevices method
Implementation
Future<List<UserDeviceList>> getDevices([UserDeviceList? lastFetchedItem]) async {
final jwt = await getJwt();
final lastFetchedTime = lastFetchedItem?.time ?? "0";
final lastId = lastFetchedItem?.deviceId ?? "none";
return Sentc.getApi().getUserDevices(
baseUrl: baseUrl,
authToken: appToken,
jwt: jwt,
lastFetchedTime: lastFetchedTime,
lastFetchedId: lastId,
);
}