ThingsboardClient class

Constructors

ThingsboardClient(String apiEndpoint, {TbStorage? storage, UserLoadedCallback? onUserLoaded, MfaAuthCallback? onMfaAuth, ErrorCallback? onError, LoadStartedCallback? onLoadStarted, LoadFinishedCallback? onLoadFinished, TbCompute? computeFunc})
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

changePassword(String currentPassword, String newPassword, {RequestConfig? requestConfig}) Future<void>
checkTwoFaVerificationCode(TwoFaProviderType providerType, String verificationCode, {RequestConfig? requestConfig}) Future<LoginResponse>
compute<Q, R>(TbComputeCallback<Q, R> callback, Q message) Future<R>
delete<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken}) Future<Response<T>>
get<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) Future<Response<T>>
getAdminService() AdminService
getAlarmService() AlarmService
getAssetProfileService() AssetProfileService
getAssetService() AssetService
getAttributeService() AttributeService
getAuditLogService() AuditLogService
getAuthUser() AuthUser?
getComponentDescriptorService() ComponentDescriptorService
getCustomerService() CustomerService
getDashboardService() DashboardService
getDeviceProfileService() DeviceProfileService
getDeviceService() DeviceService
getEdgeService() EdgeService
getEntitiesVersionControlService() EntitiesVersionControlService
getEntityQueryService() EntityQueryService
getEntityRelationService() EntityRelationService
getEntityViewService() EntityViewService
getJwtToken() String?
getNotificationService() NotificationsService
getOAuth2Service() OAuth2Service
getOtaPackageService() OtaPackageService
getPlatformVersion() PlatformVersion?
getQueueService() QueueService
getRefreshToken() String?
getResourceService() ResourceService
getRuleChainService() RuleChainService
getTelemetryService() TelemetryService
getTenantProfileService() TenantProfileService
getTenantService() TenantService
getTwoFactorAuthService() TwoFactorAuthService
getUserService() UserService
getWidgetService() WidgetService
init() Future<void>
isAuthenticated() bool
isCustomerUser() bool
isJwtTokenValid() bool
isPreVerificationToken() bool
isSystemAdmin() bool
isTenantAdmin() bool
login(LoginRequest loginRequest, {RequestConfig? requestConfig}) Future<LoginResponse>
logout({RequestConfig? requestConfig}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response<T>>
put<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken}) Future<Response<T>>
refreshJwtToken({String? refreshToken, bool? notify, Dio? internalDio, bool interceptRefreshToken = false}) Future<void>
refreshTokenPending() bool
setUserFromJwtToken(String? jwtToken, String? refreshToken, bool? notify) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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