data-broker/data-broker-subscriptions.service.ts
Properties |
Methods |
|
constructor(moRealtimeService: ManagedObjectRealtimeService, deviceBootstrapRealtimeService: DeviceBootstrapRealtimeService, inventoryService: InventoryService, userService: UserService, deviceRegistrationService: DeviceRegistrationService, appStateService: AppStateService)
|
|||||||||||||||||||||
Parameters :
|
Async accept | ||||||
accept(code: string)
|
||||||
Accept subscription
Parameters :
Returns :
Promise<IDeviceRegistration>
|
Async create | ||||||
create(code: string)
|
||||||
Add new subscription
Parameters :
Returns :
Promise<IDeviceRegistration>
|
Async discard | ||||||
discard(code: string)
|
||||||
Discard subscription
Parameters :
Returns :
unknown
|
Async getBrokerSubscriptionsList |
getBrokerSubscriptionsList()
|
Returns :
Promise<IManagedObject[]>
|
getForNg1 | |||
getForNg1(undefined)
|
|||
Parameters :
Returns :
SubscriptionsViewModelNg1
|
getVisibleUserStatusText | ||||
getVisibleUserStatusText(user)
|
||||
User status text (legacy compatibility)
Parameters :
Returns :
string
|
Async listPendingBrokerSubscriptions |
listPendingBrokerSubscriptions()
|
List of pending subscriptions
Returns :
Promise<IDeviceRegistration[]>
|
Async remove | ||||||
remove(subscription: SubscriptionViewModel)
|
||||||
Parameters :
Returns :
unknown
|
Async setStatus | |||||||||
setStatus(subscription: SubscriptionViewModel, enabled: boolean)
|
|||||||||
Parameters :
Returns :
Promise<SubscriptionViewModel>
|
filters |
Type : object
|
Default value : {
fragmentType: this.FRAGMENT_TYPE,
pageSize: 2000
}
|
NEW_DEVICE_REQUEST_STATUS |
legacy enum values |