/*
 * Copyright (C) 2024 usbharu
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package dev.usbharu.hideout.mastodon.service.notification

import dev.usbharu.hideout.application.infrastructure.exposed.Page
import dev.usbharu.hideout.application.infrastructure.exposed.PaginationList
import dev.usbharu.hideout.domain.mastodon.model.generated.Notification
import dev.usbharu.hideout.mastodon.domain.model.NotificationType

interface NotificationApiService {

    suspend fun notifications(
        loginUser: Long,
        types: List<NotificationType>,
        excludeTypes: List<NotificationType>,
        accountId: List<Long>,
        page: Page
    ): PaginationList<Notification, Long>

    suspend fun fingById(loginUser: Long, notificationId: Long): Notification?

    suspend fun clearAll(loginUser: Long)

    suspend fun dismiss(loginUser: Long, notificationId: Long)
}
