AssetService class

Constructors

AssetService(ThingsboardClient tbClient)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

assignAssetToCustomer(String customerId, String assetId, {RequestConfig? requestConfig}) Future<Asset?>
assignAssetToEdge(String edgeId, String assetId, {RequestConfig? requestConfig}) Future<Asset?>
assignAssetToPublicCustomer(String assetId, {RequestConfig? requestConfig}) Future<Asset?>
deleteAsset(String assetId, {RequestConfig? requestConfig}) Future<void>
findByQuery(AssetSearchQuery query, {RequestConfig? requestConfig}) Future<List<Asset>>
getAsset(String assetId, {RequestConfig? requestConfig}) Future<Asset?>
getAssetInfo(String assetId, {RequestConfig? requestConfig}) Future<AssetInfo?>
getAssetsByIds(List<String> assetIds, {RequestConfig? requestConfig}) Future<List<Asset>>
getAssetTypes({RequestConfig? requestConfig}) Future<List<EntitySubtype>>
getCustomerAssetInfos(String customerId, PageLink pageLink, {String type = '', RequestConfig? requestConfig}) Future<PageData<AssetInfo>>
getCustomerAssets(String customerId, PageLink pageLink, {String type = '', RequestConfig? requestConfig}) Future<PageData<Asset>>
getEdgeAssets(String edgeId, PageLink pageLink, {String type = '', RequestConfig? requestConfig}) Future<PageData<Asset>>
getTenantAsset(String assetName, {RequestConfig? requestConfig}) Future<Asset?>
getTenantAssetInfos(PageLink pageLink, {String type = '', RequestConfig? requestConfig}) Future<PageData<AssetInfo>>
getTenantAssets(PageLink pageLink, {String type = '', RequestConfig? requestConfig}) Future<PageData<Asset>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveAsset(Asset asset, {RequestConfig? requestConfig}) Future<Asset>
toString() String
A string representation of this object.
inherited
unassignAssetFromCustomer(String assetId, {RequestConfig? requestConfig}) Future<Asset?>
unassignAssetFromEdge(String edgeId, String assetId, {RequestConfig? requestConfig}) Future<Asset?>

Operators

operator ==(Object other) bool
The equality operator.
inherited