Commit 411afb4d authored by Tom Käsler's avatar Tom Käsler

add json protocol for motds

parent 725c50fd
Pipeline #7883 passed with stages
in 2 minutes and 43 seconds
package de.thm.arsnova.mappings
import de.thm.arsnova.models.GlobalMotd
import spray.json._
object GlobalMotdJsonProtocol extends DefaultJsonProtocol {
implicit val commentFormat: RootJsonFormat[GlobalMotd] = jsonFormat6(GlobalMotd)
package de.thm.arsnova.mappings
import de.thm.arsnova.models.SessionMotd
import spray.json._
object SessionMotdJsonProtocol extends DefaultJsonProtocol {
implicit val commentFormat: RootJsonFormat[SessionMotd] = jsonFormat6(SessionMotd)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment