package com.pixelized.biblib.network.data.response

import com.google.gson.annotations.SerializedName

data class GenreListResponse(
    @SerializedName("lastUpdated")
    val lastUpdated: String?,
    @SerializedName("tags")
    val genres: List<Genres>?,
) : ErrorResponse() {

    data class Genres(
        @SerializedName("tag_id")
        val tag_id: Int?,
        @SerializedName("tag_name")
        val tag_name: String?,
        @SerializedName("books")
        val books: List<Books>?,
    )

    data class Books(
        @SerializedName("book_id")
        val book_id: Int?,
        @SerializedName("book_title")
        val book_title: String?,
        @SerializedName("book_has_cover")
        val book_has_cover: Int?,
        @SerializedName("book_date")
        val book_date: String?,
        @SerializedName("book_series_index")
        val book_series_index: Float?,
        @SerializedName("last_modified")
        val last_modified: String?,
        @SerializedName("author_name")
        val author_name: List<String>?,
        @SerializedName("lang_id")
        val lang_id: Int?,
        @SerializedName("lang_code")
        val lang_code: String?,
        @SerializedName("rating")
        val rating: String?,
        @SerializedName("series_id")
        val series_id: Int?,
        @SerializedName("series_name")
        val series_name: String?,
        @SerializedName("series_sort")
        val series_sort: String?,
    )
}