feat(api): Implement received hand event handling and UI updates (#83)
#76 Reviewed-on: #83
This commit is contained in:
12
knockoutwhistweb/app/util/mapper/SimpleEventMapper.scala
Normal file
12
knockoutwhistweb/app/util/mapper/SimpleEventMapper.scala
Normal file
@@ -0,0 +1,12 @@
|
||||
package util.mapper
|
||||
|
||||
import de.knockoutwhist.utils.events.SimpleEvent
|
||||
import logic.game.GameLobby
|
||||
import play.api.libs.json.JsObject
|
||||
|
||||
trait SimpleEventMapper[T <: SimpleEvent] {
|
||||
|
||||
def id: String
|
||||
def toJson(event: T, gameLobby: GameLobby): JsObject
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user