package com.wall.photography.wallpaper.data

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.wall.photography.wallpaper.MyApp
import com.wall.photography.wallpaper.room.AuthorTypeCovert
import com.wall.photography.wallpaper.room.UrlsTypeCovert
import java.io.Serializable


@TypeConverters(AuthorTypeCovert::class, UrlsTypeCovert::class)
@Entity(tableName = MyApp.TABLE_NAME)
class Bean(
    @PrimaryKey(autoGenerate = true)
    var id: Int = 0,
    var alt_description: String,
    var links: String,
    var urls: URLS,
    var user: Author,
    var love: Boolean = false,
    var cateName: String,
    var download: String,
    var downloadFilePath: String? = null
) : Serializable
