old changes, idk (>1 year)
This commit is contained in:
1 parent
c5d6075c01
commit
ae18ac1ccd
120 files changed
+4011
-1138
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package at.eisibaer.jbear2.dto.board
|
||||
|
||||
import at.eisibaer.jbear2.dto.edit.AnswerTypeDto
|
||||
import org.springframework.data.geo.Point
|
||||
|
||||
data class AnswerDto(
|
||||
val text: String,
|
||||
val answerType: AnswerTypeDto,
|
||||
val image: String?,
|
||||
val location: Point?,
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
package at.eisibaer.jbear2.dto.board
|
||||
|
||||
data class BoardDto(
|
||||
val id: Long?,
|
||||
val boardName: String,
|
||||
val owner: String?,
|
||||
val categories: List<CategoryDto>,
|
||||
val pointsAreTitle: Boolean,
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
package at.eisibaer.jbear2.dto.board
|
||||
|
||||
data class BoardEntryDto(
|
||||
val name: String,
|
||||
val points: Long,
|
||||
val answer: AnswerDto,
|
||||
val questions: List<QuestionDto>,
|
||||
// val category: CategoryDto,
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
package at.eisibaer.jbear2.dto.board
|
||||
|
||||
data class CategoryDto(
|
||||
val name: String,
|
||||
val description: String,
|
||||
val boardEntries: List<BoardEntryDto>,
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
package at.eisibaer.jbear2.dto.board
|
||||
|
||||
import at.eisibaer.jbear2.dto.edit.QuestionTypeDto
|
||||
import org.springframework.data.geo.Point
|
||||
|
||||
data class QuestionDto(
|
||||
val text: String,
|
||||
val questionType: QuestionTypeDto,
|
||||
val fontScaling: Int,
|
||||
val image: String?,
|
||||
val location: Point?,
|
||||
// val boardEntryDto: BoardEntryDto,
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
package at.eisibaer.jbear2.dto.edit
|
||||
|
||||
data class AnswerTypeDto(
|
||||
val title: String,
|
||||
val description: String,
|
||||
val id: Long?,
|
||||
)
|
||||
@@ -0,0 +1,7 @@
|
||||
package at.eisibaer.jbear2.dto.edit
|
||||
|
||||
data class QuestionTypeDto(
|
||||
val title: String,
|
||||
val description: String,
|
||||
val id: Long,
|
||||
)
|
||||
@@ -0,0 +1,6 @@
|
||||
package at.eisibaer.jbear2.dto.edit
|
||||
|
||||
data class TypesDto(
|
||||
val questionTypes: List<QuestionTypeDto>,
|
||||
val answerTypes: List<AnswerTypeDto>,
|
||||
)
|
||||
@@ -0,0 +1,14 @@
|
||||
package at.eisibaer.jbear2.dto.game
|
||||
|
||||
import java.util.*
|
||||
|
||||
data class GameDto(
|
||||
val inviteCode: String,
|
||||
val uuid: UUID,
|
||||
val boardId: Long,
|
||||
// val host: String,
|
||||
val players: List<PlayerDto>,
|
||||
// val alreadyAnsweredEntries: List<Long>,
|
||||
val acceptingAnswers: Boolean = false,
|
||||
val currentlyChoosingPlayer: PlayerDto? = null,
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
package at.eisibaer.jbear2.dto.game
|
||||
|
||||
import java.util.UUID
|
||||
|
||||
data class PlayerDto(
|
||||
val name: String,
|
||||
val id: Long,
|
||||
// val uuid: UUID,
|
||||
)
|
||||
@@ -0,0 +1,5 @@
|
||||
package at.eisibaer.jbear2.dto.message
|
||||
|
||||
import java.util.*
|
||||
|
||||
data class GameMessage(val uuid: UUID, val message: String);
|
||||
@@ -0,0 +1,12 @@
|
||||
package at.eisibaer.jbear2.dto.message
|
||||
|
||||
import at.eisibaer.jbear2.model.BoardEntry
|
||||
import java.util.UUID
|
||||
|
||||
data class GameStateMessage(
|
||||
val uuid: UUID,
|
||||
val categoryIndex: Int?,
|
||||
val boardEntryIndex: Int?,
|
||||
val questionIndex: Int?,
|
||||
val questionLayerIndex: Int?,
|
||||
)
|
||||
@@ -4,8 +4,5 @@ import lombok.AllArgsConstructor
|
||||
|
||||
@AllArgsConstructor
|
||||
data class GenericMessage (
|
||||
|
||||
var name: String? = "",
|
||||
|
||||
var content: String? = "",
|
||||
val content: String,
|
||||
)
|
||||
@@ -0,0 +1,5 @@
|
||||
package at.eisibaer.jbear2.dto.message
|
||||
|
||||
data class JoinGameMessage(
|
||||
val playerName: String,
|
||||
)
|
||||
@@ -0,0 +1,8 @@
|
||||
package at.eisibaer.jbear2.dto.message
|
||||
|
||||
import at.eisibaer.jbear2.dto.game.PlayerDto
|
||||
|
||||
data class PlayerMessage(
|
||||
val player: PlayerDto,
|
||||
val content: String,
|
||||
)
|
||||
@@ -0,0 +1,9 @@
|
||||
package at.eisibaer.jbear2.dto.user
|
||||
|
||||
import at.eisibaer.jbear2.dto.board.BoardDto
|
||||
|
||||
data class UserDto(
|
||||
val username: String,
|
||||
val profilePicture: String,
|
||||
val boards: List<BoardDto>,
|
||||
)
|
||||
Reference in new issue
Block a user