All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.model.tile.request.TileRequest.kt Maven / Gradle / Ivy

There is a newer version: 3.11.0
Show newest version
package com.bselzer.gw2.v2.model.tile.request

import com.bselzer.gw2.v2.model.tile.position.GridPosition
import com.bselzer.ktx.geometry.dimension.bi.Dimension2D
import com.bselzer.ktx.serialization.serializer.Dimension2DSerializer
import kotlinx.serialization.Serializable

/**
 * Represents a request for getting [Tile] content.
 */
@Serializable
data class TileRequest(
    /**
     * The request.
     */
    val url: String,

    /**
     * The relative position within the grid.
     */
    val gridPosition: GridPosition,

    /**
     * The width and height.
     */
    @Serializable(with = Dimension2DSerializer::class)
    val size: Dimension2D,

    /**
     * The zoom level.
     */
    val zoom: Int,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy