package com.rssuper.models

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
@Parcelize
@Entity(tableName = "notification_preferences")
data class NotificationPreferences(
    @PrimaryKey
    val id: String = "default",
    
    @Json(name = "newArticles")
    val newArticles: Boolean = true,
    
    @Json(name = "episodeReleases")
    val episodeReleases: Boolean = true,
    
    @Json(name = "customAlerts")
    val customAlerts: Boolean = false,
    
    @Json(name = "badgeCount")
    val badgeCount: Boolean = true,
    
    @Json(name = "sound")
    val sound: Boolean = true,
    
    @Json(name = "vibration")
    val vibration: Boolean = true
) : Parcelable
