Add Type for Texture
This commit is contained in:
parent
ec9c6888fc
commit
1b41132c18
|
@ -1,4 +1,21 @@
|
||||||
package org.hso.texturesyncclient.model
|
package org.hso.texturesyncclient.model
|
||||||
|
|
||||||
|
import java.util.*
|
||||||
|
|
||||||
class DataModel {
|
class DataModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum class TextureFormat {
|
||||||
|
PNG, JPEG,
|
||||||
|
}
|
||||||
|
|
||||||
|
@Suppress("ArrayInDataClass")
|
||||||
|
data class Texture(
|
||||||
|
val id : UUID,
|
||||||
|
val name : String,
|
||||||
|
val tags : Array<String>,
|
||||||
|
val format : TextureFormat,
|
||||||
|
val resolution : Pair<Int, Int>,
|
||||||
|
val addedOn : Date,
|
||||||
|
val textureHash : ByteArray
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue