kemApiV3InternalDevicesGet method

Future<Response<List<DeviceListingDTO>>> kemApiV3InternalDevicesGet({
  1. String? businessPartnerNo,
  2. String? homeownerEmail,
  3. String? filterText,
  4. List<String>? serialNumbers,
  5. List<int>? ids,
  6. int? limit,
  7. int? offset,
  8. ApprovalDTO? dealerOrgApproval,
  9. ApprovalDTO? homeownerApproval,
  10. bool? includeDealerOrgs,
  11. bool? includeUptime,
  12. VisibilityDTO? visibility,
  13. DeviceSortDTO? sort,
  14. SortDirectionDTO? sortDirection,
  15. ConnectionTypeDTO? connectionType,
  16. ServiceAgreementStatusDTO? serviceAgreementStatus,
  17. CellularDataStatusDTO? cellularDataStatus,
  18. DateTime? cellularExpiryBefore,
  19. DateTime? cellularExpiryAfter,
  20. CellularExpiryStatusDTO? cellularExpiryStatus,
})

Get a list of devicetags based on the given serialNumber and notificationType @param BusinessPartnerNo If provided, only devices assigned to the dealer org with the given business partner no will be included. @param HomeownerEmail If provided, only devices assigned to the homeowner with the given email no will be included. @param FilterText If provided, only devices whose device information, dealer org, or homeowner information contain the given filter text will be included @param SerialNumbers If provided, only devices with the matching serial numbers will be included. @param ids If provided, only devices with the matching device IDs will be included. @param Limit Number of devices to return @param Offset Number of devices to skip @param DealerOrgApproval Only devices with the provided approval level to their dealer org will be included. Defaults to "Approved", meaning only devices that are approved and monitored by a dealer org will be included. @param HomeownerApproval Only devices with the provided approval level to their homeowner will be included. Defaults to "Any", meaning a device will be included whether it has a homeowner monitoring it or not. @param IncludeDealerOrgs Whether to include dealer org information in the device response @param IncludeUptime Whether to include uptime information in the device response @param Visibility Whether to include only visible, hidden, or all devices. Defaults to visible devices. @param Sort If provided, this parameter provides the column name by which the data is going to be sorted by. Defaults to null. @param SortDirection Along with sort, this parameter provides the direction by which the data is going to be sorted by. Defaults to Ascending @param ConnectionType If provided, this parameter provides the column name by which the data is going to be Filtered by. Defaults to null. @param ServiceAgreementStatus If provided, this parameter provides the column name by which the data is going to be Filtered by. Defaults to null. @param CellularDataStatus If provided, filters results by the specified cellular data status. Defaults to null (no status filtering). @param CellularExpiryBefore If provided, filters results to only include devices whose cellular data expires before this date. Defaults to null @param CellularExpiryAfter If provided, filters results to only include devices whose cellular data expires after this date. Defaults to null @param CellularExpiryStatus If provided, filters results based on the cellular expiration status

Implementation

Future<chopper.Response<List<DeviceListingDTO>>> kemApiV3InternalDevicesGet({
  String? businessPartnerNo,
  String? homeownerEmail,
  String? filterText,
  List<String>? serialNumbers,
  List<int>? ids,
  int? limit,
  int? offset,
  enums.ApprovalDTO? dealerOrgApproval,
  enums.ApprovalDTO? homeownerApproval,
  bool? includeDealerOrgs,
  bool? includeUptime,
  enums.VisibilityDTO? visibility,
  enums.DeviceSortDTO? sort,
  enums.SortDirectionDTO? sortDirection,
  enums.ConnectionTypeDTO? connectionType,
  enums.ServiceAgreementStatusDTO? serviceAgreementStatus,
  enums.CellularDataStatusDTO? cellularDataStatus,
  DateTime? cellularExpiryBefore,
  DateTime? cellularExpiryAfter,
  enums.CellularExpiryStatusDTO? cellularExpiryStatus,
}) {
  generatedMapping.putIfAbsent(
      DeviceListingDTO, () => DeviceListingDTO.fromJsonFactory);

  return _kemApiV3InternalDevicesGet(
      businessPartnerNo: businessPartnerNo,
      homeownerEmail: homeownerEmail,
      filterText: filterText,
      serialNumbers: serialNumbers,
      ids: ids,
      limit: limit,
      offset: offset,
      dealerOrgApproval: dealerOrgApproval?.value?.toString(),
      homeownerApproval: homeownerApproval?.value?.toString(),
      includeDealerOrgs: includeDealerOrgs,
      includeUptime: includeUptime,
      visibility: visibility?.value?.toString(),
      sort: sort?.value?.toString(),
      sortDirection: sortDirection?.value?.toString(),
      connectionType: connectionType?.value?.toString(),
      serviceAgreementStatus: serviceAgreementStatus?.value?.toString(),
      cellularDataStatus: cellularDataStatus?.value?.toString(),
      cellularExpiryBefore: cellularExpiryBefore,
      cellularExpiryAfter: cellularExpiryAfter,
      cellularExpiryStatus: cellularExpiryStatus?.value?.toString());
}