Class: NotificationService
Hierarchy
↳
NotificationService
Constructors
constructor
• new NotificationService()
Inherited from
DefaultGlobalService.constructor
Properties
[combinedReducers]
• [combinedReducers]: (state
: any
, action
: any
) => any
Type declaration
▸ (state
, action
): any
Parameters
Name | Type |
---|---|
state | any |
action | any |
Returns
any
Inherited from
DefaultGlobalService.[combinedReducers]
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:63
[dispatch]
• [dispatch]: any
Inherited from
DefaultGlobalService.[dispatch]
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:62
[inReducer]
• [inReducer]: boolean
Inherited from
DefaultGlobalService.[inReducer]
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:64
[reducers]
• [reducers]: any
Inherited from
DefaultGlobalService.[reducers]
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:59
[sagas]
• [sagas]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:61
[types]
• [types]: any
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:60
context
• context: AppContext
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/app/AppService.ts:8
state
• state: AnyState
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:66
Methods
[create]
▸ [create](initialState
): void
Parameters
Name | Type |
---|---|
initialState | AnyState |
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/Service.ts:69
[run]
▸ [run](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/app/GlobalService.ts:7
[stop]
▸ [stop](): void
Returns
void
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/app/GlobalService.ts:15
add
▸ add(notification
): void
Parameters
Name | Type |
---|---|
notification | Notification |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:18
clearTopic
▸ clearTopic(topic
): void
Parameters
Name | Type |
---|---|
topic | string |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:32
debug
▸ debug(payload
): Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Parameters
Name | Type |
---|---|
payload | any |
Returns
Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:39
error
▸ error(payload
): Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Parameters
Name | Type |
---|---|
payload | any |
Returns
Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:46
formatLevelNotification
▸ formatLevelNotification(level
, notification
): NotificationContent
Parameters
Name | Type |
---|---|
level | NotificationLevel |
notification | string | NotificationContent |
Returns
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:89
formatNotification
▸ formatNotification(notificationContent
, settings
, notificationService
): Notification
Parameters
Name | Type |
---|---|
notificationContent | string | NotificationContent |
settings | AppSettings |
notificationService | NotificationService |
Returns
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:50
info
▸ info(payload
): Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Parameters
Name | Type |
---|---|
payload | any |
Returns
Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:109
init
▸ init(): void
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:13
onRouteChange
▸ onRouteChange(): void
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:114
remove
▸ remove(notificationId
): void
Parameters
Name | Type |
---|---|
notificationId | string | number | symbol |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:125
send
▸ send(notificationContent
): Generator
<void
| CallEffect
<true
>, void
, unknown
>
Parameters
Name | Type |
---|---|
notificationContent | string | NotificationContent |
Returns
Generator
<void
| CallEffect
<true
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:138
success
▸ success(payload
): Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Parameters
Name | Type |
---|---|
payload | any |
Returns
Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:168
warning
▸ warning(payload
): Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Parameters
Name | Type |
---|---|
payload | any |
Returns
Generator
<Generator
<void
| CallEffect
<true
>, void
, unknown
>, void
, unknown
>
Defined in
onekijs/packages/onekijs-framework/src/notification/NotificationService.ts:175