import { ResultList, UserNotification as UserNotificationServer, UserNotificationSetting } from '../../../../../shared'
import { UserNotification } from './user-notification.model'
import { AuthService } from '../../core'
-import { ComponentPagination } from '../rest/component-pagination.model'
-import { User } from '..'
+import { ComponentPaginationLight } from '../rest/component-pagination.model'
+import { User } from '../users/user.model'
import { UserNotificationSocket } from '@app/core/notification/user-notification-socket.service'
@Injectable()
static BASE_NOTIFICATIONS_URL = environment.apiUrl + '/api/v1/users/me/notifications'
static BASE_NOTIFICATION_SETTINGS = environment.apiUrl + '/api/v1/users/me/notification-settings'
- private socket: SocketIOClient.Socket
-
constructor (
private auth: AuthService,
private authHttp: HttpClient,
private userNotificationSocket: UserNotificationSocket
) {}
- listMyNotifications (pagination: ComponentPagination, unread?: boolean, ignoreLoadingBar = false) {
+ listMyNotifications (pagination: ComponentPaginationLight, unread?: boolean, ignoreLoadingBar = false) {
let params = new HttpParams()
params = this.restService.addRestGetParams(params, this.restService.componentPaginationToRestPagination(pagination))