listPlanStatuses method
Get the statuses of plans created by moveOnMap or moveOnGlobe calls that meet at least one of the following
conditions since the motion service initialized: the plan's status is in progress, or the plan's status changed
state within the last 24 hours. When onlyActivePlans is true, only plans that are currently in progress are
returned.
// Example:
final statuses = await myMotionService.listPlanStatuses(onlyActivePlans: true);
For more information, see the motion service docs.
Implementation
Future<List<PlanStatusWithID>> listPlanStatuses({bool? onlyActivePlans, Map<String, dynamic>? extra}) async {
final request = ListPlanStatusesRequest(name: name, onlyActivePlans: onlyActivePlans, extra: extra?.toStruct());
final response = await client.listPlanStatuses(request, options: callOptions);
return response.planStatusesWithIds;
}