Event event new Event events size name day events add event final Json

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Event event = new Event(events.size(), name, day);
events.add(event);
final JsonElement obj = BaseSnapshotModel.getGson().toJsonTree(event);
String fullPath = event.getFullPath();
TourCommitService.addTourCommit(
snapshot.getObjectId(),
snapshot.getVersion() + 1,
new Payload(fullPath, Act.APP, obj)
);