package eventstore.j.examples;

import eventstore.EventData;
import eventstore.j.EventDataBuilder;

import java.util.UUID;

public class EventDataBuilderExample {

    final EventData empty = new EventDataBuilder("empty").build();

    final EventData binary = new EventDataBuilder("binary")
            .eventId(UUID.randomUUID())
            .data(new byte[]{1, 2, 3, 4})
            .metadata(new byte[]{5, 6, 7, 8})
            .build();

    final EventData string = new EventDataBuilder("string")
            .eventId(UUID.randomUUID())
            .data("data")
            .metadata("metadata")
            .build();

    final EventData json = new EventDataBuilder("json")
            .eventId(UUID.randomUUID())
            .jsonData("{\"data\":\"data\"}")
            .jsonMetadata("{\"metadata\":\"metadata\"}")
            .build();
}
@@ -208,20 +208,24 @@
 ilder(%22e
-mpty
+ventType
 %22).build
@@ -280,22 +280,25 @@
 uilder(%22
-binary
+eventType
 %22)%0A     
@@ -494,22 +494,25 @@
 uilder(%22
-string
+eventType
 %22)%0A     
@@ -678,20 +678,25 @@
 uilder(%22
-json
+eventType
 %22)%0A     
@@ -855,8 +855,9 @@
 ild();%0A%7D
+%0A

Make event type more explicit in examples