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

import com.google.gson.annotations.SerializedName

data class BookDetailResponse(
    @SerializedName("book")
    val book: Book?,
) : ErrorResponse() {
    data class Book(
        @SerializedName("book_id")
        val book_id: Int? = null,
        @SerializedName("book_title")
        val book_title: String? = null,
        @SerializedName("book_sort")
        val book_sort: String? = null,
        @SerializedName("book_has_cover")
        val book_has_cover: Int? = null,
        @SerializedName("book_date")
        val book_date: String? = null,
        @SerializedName("book_series_index")
        val book_series_index: Float? = null,
        @SerializedName("timestamp")
        val timestamp: String? = null,
        @SerializedName("last_modified")
        val last_modified: String? = null,
        @SerializedName("author_id")
        val author_id: List<String>? = null,
        @SerializedName("author_name")
        val author_name: List<String>? = null,
        @SerializedName("author_sort")
        val author_sort: List<String>? = null,
        @SerializedName("lang_id")
        val lang_id: String? = null,
        @SerializedName("lang_code")
        val lang_code: String? = null,
        @SerializedName("tag_id")
        val tag_id: List<String>? = null,
        @SerializedName("tag_name")
        val tag_name: List<String>? = null,
        @SerializedName("rating")
        val rating: String? = null,
        @SerializedName("series_id")
        val series_id: String? = null,
        @SerializedName("series_name")
        val series_name: String? = null,
        @SerializedName("series_sort")
        val series_sort: String? = null,
        @SerializedName("comment")
        val comment: String? = null,
        @SerializedName("data")
        val data: List<Data>? = null,
    ) {
        data class Data(
            // "data_id": "9344",
            @SerializedName("data_id")
            val data_id: String? = null,
            // "data_format": "MOBI",
            @SerializedName("data_format")
            val data_format: String? = null,
            // "data_size": "699027",
            @SerializedName("data_size")
            val data_size: String? = null,
            // "data_name": "Fondation - Isaac Asimov"
            @SerializedName("data_name")
            val data_name: String? = null,
        )
    }
}