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

import com.google.gson.annotations.SerializedName

data class SeriesListResponse(
	@SerializedName("lastUpdated")
    val lastUpdated: String?,
	@SerializedName("series")
    val series: List<Series>?,
) : ErrorResponse() {

    data class Series(
        @SerializedName("series_id")
        val series_id: Int?,
        @SerializedName("series_name")
        val series_name: String?,
        @SerializedName("series_sort")
        val series_sort: String?,
        @SerializedName("books")
        val books: List<Books>?,
        @SerializedName("author_name")
        val author_name: List<String>?,
        @SerializedName("author_sort")
        val author_sort: List<String>?,
        @SerializedName("book_date")
        val book_date: List<String>?,
    )

    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?,
    )
}