From 1b41132c185445ab91922e98029bd2dfd687bc2f Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Sun, 2 Jun 2019 22:01:32 +0200 Subject: [PATCH] Add Type for Texture --- .../hso/texturesyncclient/model/DataModel.kt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/model/DataModel.kt b/client/src/main/kotlin/org/hso/texturesyncclient/model/DataModel.kt index aef14ef..089a425 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/model/DataModel.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/model/DataModel.kt @@ -1,4 +1,21 @@ package org.hso.texturesyncclient.model +import java.util.* + class DataModel { -} \ No newline at end of file +} + +enum class TextureFormat { + PNG, JPEG, +} + +@Suppress("ArrayInDataClass") +data class Texture( + val id : UUID, + val name : String, + val tags : Array, + val format : TextureFormat, + val resolution : Pair, + val addedOn : Date, + val textureHash : ByteArray +)