WireFormats for case objects

38 views
Skip to first unread message

Patrick Grandjean

unread,
Jun 21, 2015, 4:19:43 PM6/21/15
to scoobi...@googlegroups.com
How to create wire formats for case objects? Here is what I am willing to do:

sealed abstract class Code(val code: String, val desc: Description)
object Code {
  case object Code1 extends Code("code1", "desc1")
  case object Code2 extends Code("code2", "desc2")
  [...]
}

I would like to use mkCaseWireFormat or mkAbstractWireFormat, unfortunately unsuccessful so far. Any idea how to handle this?
Reply all
Reply to author
Forward
0 new messages