Current scope: tibiakt-core| all classes
|
com.galarzaa.tibiakt.core.section.charactertrade.bazaar.model
Coverage Summary for Class: SalesArgument (com.galarzaa.tibiakt.core.section.charactertrade.bazaar.model)
| Class | Method, % | Branch, % | Line, % | Instruction, % |
|---|---|---|---|---|
| SalesArgument | 50% (1/2) | 0% (0/2) | 75% (3/4) | 45.3% (29/64) |
| SalesArgument$Companion | 100% (1/1) | 100% (1/1) | 100% (4/4) | |
| Total | 66.7% (2/3) | 0% (0/2) | 80% (4/5) | 48.5% (33/68) |
/*
* 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 special highlight or description of the auction, selected by the author.
*
* @property content The content of the argument.
* @property categoryId The id of the category of the argument.
*/
@Serializable
public data class SalesArgument(
val categoryId: Int,
val content: String,
) {
/**
* The URL to the image corresponding to the category.
*/
val categoryImageUrl: String get() = staticFileUrl("images", "charactertrade", "usp-category-$categoryId.png")
}