Coverage Summary for Class: ItemEntry (com.galarzaa.tibiakt.core.section.charactertrade.bazaar.model)

Class Method, % Branch, % Line, % Instruction, %
ItemEntry 33.3% (1/3) 0% (0/2) 75% (6/8) 24.1% (27/112)
ItemEntry$Companion 0% (0/1) 0% (0/1) 0% (0/2)
Total 25% (1/4) 0% (0/2) 66.7% (6/9) 23.7% (27/114)


 /*
  * Copyright © 2025 Allan Galarza
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package com.galarzaa.tibiakt.core.section.charactertrade.bazaar.model
 
 import com.galarzaa.tibiakt.core.net.staticFileUrl
 import kotlinx.serialization.Serializable
 
 /**
  * A collection of items of an auctioned character.
  */
 @Serializable
 public data class ItemSummary(
     override val currentPage: Int,
     override val totalPages: Int,
     override val resultsCount: Int,
     override val entries: List<ItemEntry>,
     override val isFullyFetched: Boolean,
 ) : AjaxPaginator<ItemEntry>
 
 /**
  * An in-game item in an [Auction].
  *
  * @property itemId The internal ID of the item.
  * @property name The name of the item.
  * @property description The description or flavor text of the item, if any.
  * @property count The amount of this item the character has.
  * @property tier The upgrade tier of the item.
  */
 @Serializable
 public data class ItemEntry(
     val itemId: Int,
     val name: String,
     val description: String?,
     val count: Int,
     val tier: Int,
 ) {
     /**
      * The URL to the item's image.
      */
     val imageUrl: String get() = staticFileUrl("images", "charactertrade", "objects", "$itemId.gif")
 }