Skip to content

Event model in Scala

Fernando Benjamin edited this page May 18, 2016 · 4 revisions

Creating a scala client is quite simple and straight forward. It is not necessary to use annotations except if:

  • You want to change the field name.
  • You are using annotations.
package org.zalando.nakadi.client.scala.example
import org.zalando.nakadi.client.scala.model.Event
...
...
...
case class MeetingsEvent(date: String, topic: String) extends Event