Event

play.api.libs.EventSource.Event
See theEvent companion class
object Event

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Event.type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply[A](a: A)(implicit dataExtractor: EventDataExtractor[A], nameExtractor: EventNameExtractor[A], idExtractor: EventIdExtractor[A]): Event

Creates an event from a single input, using implicit extractors to provide raw values.

Creates an event from a single input, using implicit extractors to provide raw values.

If no extractor is available, the implicit conversion in the low priority traits will be used. For the EventDataExtractor, this means String or JsValue will be automatically mapped, and the nameExtractor and idExtractor will implicitly resolve to None.

Attributes

Implicits

Implicits

implicit def contentType(implicit codec: Codec): ContentTypeOf[Event]
implicit def writeable(implicit codec: Codec): Writeable[Event]