Service for handling notifications

Hierarchy

  • NotificationRepository

Methods

  • Creates a notification

    Returns

    the created notification

    Returns Promise<Notification>

  • Deletes a notification by its id

    Parameters

    • notificationId: number

      the id of the notification to delete

    Returns Promise<void>

  • Gets a notification by its id

    Returns

    the fetched notification

    Parameters

    • notificationId: number

      the id of the notification to get

    Returns Promise<Notification>

  • Gets all notifications

    Returns

    the saved notifications

    Returns Promise<Notification[]>

  • Marks a notification as read

    Returns

    the read notification

    Parameters

    • notificationId: number

      the id of the notification to mark as read

    Returns Promise<Notification>