Package com.zendesk.connect
Class EventFactory
- java.lang.Object
-
- com.zendesk.connect.EventFactory
-
public class EventFactory extends java.lang.Object
Simple factory methods for quickly creatingEvent
objects
-
-
Constructor Summary
Constructors Constructor and Description EventFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Event
createEvent(java.lang.String eventName)
Create an event with no propertiesstatic Event
createEvent(java.lang.String eventName, java.util.Map<java.lang.String,java.lang.Object> properties)
Create an event with properties
-
-
-
Method Detail
-
createEvent
public static Event createEvent(java.lang.String eventName, java.util.Map<java.lang.String,java.lang.Object> properties)
Create an event with properties- Parameters:
eventName
- the name of the eventproperties
- the properties of the event- Returns:
- a constructed
Event
object
-
-