/*
 * Copyright (c) 2026 Meshtastic LLC
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
package org.meshtastic.core.repository

data class Notification(
    val title: String,
    val message: String,
    val type: Type = Type.Info,
    val category: Category = Category.Message,
    val contactKey: String? = null,
    val isSilent: Boolean = false,
    val group: String? = null,
    val id: Int? = null,
    /**
     * Optional deep-link URI invoked when the user taps the notification. Platform implementations are responsible for
     * converting this into the appropriate intent / activation action. When null, tapping the notification has no
     * effect.
     */
    val deepLinkUri: String? = null,
) {
    enum class Type {
        None,
        Info,
        Warning,
        Error,
    }

    enum class Category {
        Message,
        NodeEvent,
        Battery,
        Alert,
        Service,
    }
}
