File

platform-components-ng/projects/platform-components-lib/src/lib/components/notification/qpp-notification.service.ts

Description

Qpp notification service

Index

Methods

Constructor

constructor(http: HttpClient, queryService: QueryService, preferencesService: PreferencesService)
Parameters :
Name Type Optional
http HttpClient No
queryService QueryService No
preferencesService PreferencesService No

Methods

Public close
close()

Stop listening to message and close channel

Returns : void

void

Async getPreferencesNotifier
getPreferencesNotifier()

Get Preferences Notifier

Promise<Observable>

Async init
init()

Component life cycle hook

Returns : any

void

publishLocalNotification
publishLocalNotification(notificationMessage: LocalNotificationMessage)

Publish local notfication

Parameters :
Name Type Optional Description
notificationMessage LocalNotificationMessage No

Notification message

Returns : void

void

Async register
register(watchQuerySessionId: string, resultId: string)

Register

Parameters :
Name Type Optional Description
watchQuerySessionId string No

Watch query Session Id

resultId string No

Result Id

Promise<Observable>

registerForAllAssetNotifications
registerForAllAssetNotifications()

Register for local notification of all assets.

Returns : any

Observable

registerForLocalAssetNotification
registerForLocalAssetNotification(assetId: number)

Register for asset Local notification.

Parameters :
Name Type Optional Description
assetId number No

Asset id of asset

Returns : any

Observable

result-matching ""

    No results matching ""