File

data-broker/data-broker-subscriptions.service.ts

Index

Properties
Methods

Constructor

constructor(moRealtimeService: ManagedObjectRealtimeService, deviceBootstrapRealtimeService: DeviceBootstrapRealtimeService, inventoryService: InventoryService, userService: UserService, deviceRegistrationService: DeviceRegistrationService, appStateService: AppStateService)
Parameters :
Name Type Optional
moRealtimeService ManagedObjectRealtimeService No
deviceBootstrapRealtimeService DeviceBootstrapRealtimeService No
inventoryService InventoryService No
userService UserService No
deviceRegistrationService DeviceRegistrationService No
appStateService AppStateService No

Methods

Async accept
accept(code: string)

Accept subscription

Parameters :
Name Type Optional
code string No
Returns : Promise<IDeviceRegistration>
Async create
create(code: string)

Add new subscription

Parameters :
Name Type Optional
code string No
Returns : Promise<IDeviceRegistration>
Async discard
discard(code: string)

Discard subscription

Parameters :
Name Type Optional
code string No
Returns : unknown
Async getBrokerSubscriptionsList
getBrokerSubscriptionsList()
Returns : Promise<IManagedObject[]>
getForNg1
getForNg1(undefined)
Parameters :
Name Optional
No
getVisibleUserStatusText
getVisibleUserStatusText(user)

User status text (legacy compatibility)

Parameters :
Name Optional
user No
Returns : string
Async listPendingBrokerSubscriptions
listPendingBrokerSubscriptions()

List of pending subscriptions

Returns : Promise<IDeviceRegistration[]>
Async remove
remove(subscription: SubscriptionViewModel)
Parameters :
Name Type Optional
subscription SubscriptionViewModel No
Returns : unknown
Async setStatus
setStatus(subscription: SubscriptionViewModel, enabled: boolean)
Parameters :
Name Type Optional
subscription SubscriptionViewModel No
enabled boolean No

Properties

filters
Type : object
Default value : { fragmentType: this.FRAGMENT_TYPE, pageSize: 2000 }
NEW_DEVICE_REQUEST_STATUS

legacy enum values

results matching ""

    No results matching ""