From d773379d8f0a114093cfcdcce5f0cd3341632f31 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 25 May 2018 12:37:18 +0900 Subject: [PATCH] ing --- @overflow/notification/service/notification.service.ts | 4 ++-- .../notification/store/notification/notification.action.ts | 5 +++-- .../notification/store/notification/notification.state.ts | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/@overflow/notification/service/notification.service.ts b/@overflow/notification/service/notification.service.ts index 9a515e2..3646af7 100644 --- a/@overflow/notification/service/notification.service.ts +++ b/@overflow/notification/service/notification.service.ts @@ -19,11 +19,11 @@ export class NotificationService { } - public readAllByMember(member: Member, pageParams: PageParams): Observable { + public readAllByMember(member: Member, pageParams: PageParams): Observable> { return this.rpcService.call('NotificationService.readAllByMember', member, pageParams); } - public markAllAsRead(member: Member, pageParams: PageParams): Observable { + public markAllAsRead(member: Member, pageParams: PageParams): Observable> { return this.rpcService.call('NotificationService.markAllAsRead', member, pageParams); } diff --git a/@overflow/notification/store/notification/notification.action.ts b/@overflow/notification/store/notification/notification.action.ts index 3d75d3f..3458806 100644 --- a/@overflow/notification/store/notification/notification.action.ts +++ b/@overflow/notification/store/notification/notification.action.ts @@ -3,6 +3,7 @@ import { RPCClientError } from '@loafer/ng-rpc'; import { Member } from '@overflow/commons-typescript/model/member'; import { PageParams } from '@overflow/commons-typescript/model/commons/PageParams'; import { Page } from '@overflow/commons-typescript/model/commons/Page'; +import { Notification } from '@overflow/commons-typescript/model/notification'; export enum ActionType { ReadAllByMember = '[Notification.list] ReadAllByMember', @@ -22,7 +23,7 @@ export class ReadAllByMember implements Action { export class ReadAllByMemberSuccess implements Action { readonly type = ActionType.ReadAllByMemberSuccess; - constructor(public payload: Page) {} + constructor(public payload: Page) {} } export class ReadAllByMemberFailure implements Action { @@ -40,7 +41,7 @@ export class MarkAllAsRead implements Action { export class MarkAllAsReadSuccess implements Action { readonly type = ActionType.MarkAllAsReadSuccess; - constructor(public payload: Page) {} + constructor(public payload: Page) {} } export class MarkAllAsReadFailure implements Action { diff --git a/@overflow/notification/store/notification/notification.state.ts b/@overflow/notification/store/notification/notification.state.ts index 927fa03..f30d983 100644 --- a/@overflow/notification/store/notification/notification.state.ts +++ b/@overflow/notification/store/notification/notification.state.ts @@ -1,9 +1,10 @@ import { RPCClientError } from '@loafer/ng-rpc'; import { Page } from '@overflow/commons-typescript/model/commons/Page'; +import { Notification } from '@overflow/commons-typescript/model/notification'; export interface State { error: RPCClientError | null; - page: Page | null; + page: Page | null; } export const initialState: State = {