PlayerGameEvent.Builder

public static class PlayerGameEvent.Builder extends Object

Builder for PlayerGameEvent.

Public Constructor Summary

Builder(String eventName)
Constructs a new PlayerGameEvent.Builder with the given event name.

Public Method Summary

PlayerGameEvent.Builder
addProperty(String key, double value)
Adds a property to the event with a double value.
PlayerGameEvent.Builder
addProperty(String key, boolean value)
Adds a property to the event with a boolean value.
PlayerGameEvent.Builder
addProperty(String key, String value)
Adds a property to the event with a string value.
PlayerGameEvent.Builder
addProperty(String key, long value)
Adds a property to the event with a long value.
PlayerGameEvent
build()
Builds the PlayerGameEvent object.

Inherited Method Summary

Public Constructors

public Builder (String eventName)

Constructs a new PlayerGameEvent.Builder with the given event name.

Parameters
eventName The event name.

Public Methods

public PlayerGameEvent.Builder addProperty (String key, double value)

Adds a property to the event with a double value.

public PlayerGameEvent.Builder addProperty (String key, boolean value)

Adds a property to the event with a boolean value.

public PlayerGameEvent.Builder addProperty (String key, String value)

Adds a property to the event with a string value.

public PlayerGameEvent.Builder addProperty (String key, long value)

Adds a property to the event with a long value.

public PlayerGameEvent build ()

Builds the PlayerGameEvent object.

Returns