Package com.moesif.api.models
Class EventBuilder
java.lang.Object
com.moesif.api.models.EventBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance with the given valuesUser's company_id stringAPI direction stringCustom event metadata as a JSON objectrequest(EventRequestModel request) API request objectresponse(EventResponseModel response) API response ObjectsessionToken(String sessionToken) End user's auth/session tokencomma separated list of tags, see documentationEnd user's user_id string from your appweight(int weight) Weight of an API call
-
Constructor Details
-
EventBuilder
public EventBuilder()Default constructor to initialize the instance
-
-
Method Details
-
request
API request object- Parameters:
request- the field to set- Returns:
- itself
-
response
API response Object- Parameters:
response- the field to set- Returns:
- itself
-
sessionToken
End user's auth/session token- Parameters:
sessionToken- the field to set- Returns:
- itself
-
tags
comma separated list of tags, see documentation- Parameters:
tags- the field to set- Returns:
- itself
-
userId
End user's user_id string from your app- Parameters:
userId- the field to set- Returns:
- itself
-
companyId
User's company_id string- Parameters:
companyId- the field to set- Returns:
- itself
-
metadata
Custom event metadata as a JSON object- Parameters:
metadata- the field to set- Returns:
- itself
-
direction
API direction string- Parameters:
direction- the field to set- Returns:
- itself
-
weight
Weight of an API call- Parameters:
weight- the field to set- Returns:
- itself
-
build
Build the instance with the given values- Returns:
- the built EventModel
-