package id.iiyh.inatrading.feature.favorite.data.model

data class FavoriteGroupItem(
    val id: String,
    val isDefault: Boolean = false,
    val name: String,
)

data class FavoriteListResponse(
    val responseCode: String? = null,
    val responseDesc: String? = null,
    val rows: List<FavoriteGroupItem> = emptyList(),
    val totalItem: Int = 0,
    val totalPage: Int = 0,
) {
    val isSuccess: Boolean get() = responseCode == "0000"
}

data class FavoriteItem(
    val id: String? = null,
    val productDescription: String? = null,
    val productId: String? = null,
    val productImage: String? = null,
    val productName: String? = null,
    val productRating: Double? = null,
    val sellerImage: String? = null,
    val sellerName: String? = null,
)

data class FavoriteItemsResponse(
    val responseCode: String? = null,
    val responseDesc: String? = null,
    val rows: List<FavoriteItem> = emptyList(),
    val totalItem: Int = 0,
    val totalPage: Int = 0,
) {
    val isSuccess: Boolean get() = responseCode == "0000"
}

data class FavoriteCreateRequest(
    val name: String,
)

data class AddToFavoriteRequest(
    val favoriteId: String,
    val productId: String,
)
