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