Class EventsParams.Builder
- java.lang.Object
-
- com.cheetahdigital.event.core.api.EventsParams.Builder
-
- Enclosing class:
- EventsParams
public static class EventsParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructorBuilder(EventsParams eventsParams)
Create a builder class from an existingEventsParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventsParams.Builder
addSubCategories(java.lang.String subCategories)
Add a sub category to filter the listEventsParams.Builder
addSubCategories(java.lang.String... subCategories)
Add sub categories to filter the listprotected EventsParams
createQueryParams()
Instantiates the implementation classEventsParams.Builder
setResultWithCategories(java.lang.Boolean resultWithCategories)
Set to show the categories associated by the eventsEventsParams.Builder
setTimezone(java.lang.String timezone)
Set to show the timezone used for current call
-
-
-
Constructor Detail
-
Builder
public Builder()
Default constructor
-
Builder
public Builder(EventsParams eventsParams)
Create a builder class from an existingEventsParams
- Parameters:
eventsParams
-EventsParams
to be reused
-
-
Method Detail
-
createQueryParams
protected EventsParams createQueryParams()
Instantiates the implementation class- Returns:
- implementation class of
BaseParams.BaseBuilder
-
setResultWithCategories
public EventsParams.Builder setResultWithCategories(@Nullable java.lang.Boolean resultWithCategories)
Set to show the categories associated by the events- Parameters:
resultWithCategories
-true
to show categories else false- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setTimezone
public EventsParams.Builder setTimezone(@Nullable java.lang.String timezone)
Set to show the timezone used for current call- Parameters:
timezone
- timezone specified for current call- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
addSubCategories
public EventsParams.Builder addSubCategories(@NonNull java.lang.String... subCategories)
Add sub categories to filter the list- Parameters:
subCategories
- categories to filter- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
addSubCategories
public EventsParams.Builder addSubCategories(@Nullable java.lang.String subCategories)
Add a sub category to filter the list- Parameters:
subCategories
- category to filter- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
-