package industries.sunshine.planningpoker import industries.sunshine.planningpoker.common.Models.* object TestModels { val me = Player("me", PlayerID(1)) val pony = Player("pony", PlayerID(10)) val birdy = Player("birdy", PlayerID(11)) val horsey = Player("horsey", PlayerID(12)) // val testRoomBackend = Room( // id = RoomID("testroom"), // players = List(me, birdy, pony, horsey), // owner = me.id, // password = "password", // allowedCards = List("xs", "s", "m", "l", "xl"), // round = RoundState.Viewing( // Map(me.id -> "xs", pony.id -> "l", birdy.id -> "s", horsey.id -> "m") // ), // playersPasswords = Map("me" -> "nickpassword") // nickname into password // ) // val testSessionId = 1L // val testSessions = Map(testSessionId -> (testRoomBackend.id, me.id)) // val testRooms = Map(testRoomBackend.id -> testRoomBackend) val testChangesList = List( RoomStateView( players = List(me), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = None, alreadyVoted = List.empty), canCloseRound = true ), RoomStateView( players = List(me, pony), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = None, alreadyVoted = List.empty), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = None, alreadyVoted = List.empty), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = None, alreadyVoted = List(birdy.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = Some("m"), alreadyVoted = List(birdy.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = Some("m"), alreadyVoted = List(birdy.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony, horsey), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = Some("m"), alreadyVoted = List(birdy.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony, horsey), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Voting(myCard = Some("m"), alreadyVoted = List(birdy.id, horsey.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony, horsey), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView .Voting(myCard = Some("m"), alreadyVoted = List(birdy.id, horsey.id, pony.id)), canCloseRound = true ), RoomStateView( players = List(me, birdy, pony, horsey), me = me.id, allowedCards = List("xs", "s", "m", "l", "xl"), round = RoundStateView.Viewing( List(me.id -> "m", pony.id -> "l", birdy.id -> "s", horsey.id -> "m") ), canCloseRound = true ) ) }