Class EventsParams
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
- com.cheetahdigital.event.core.api.EventsParams
-
- All Implemented Interfaces:
android.os.Parcelable
public class EventsParams extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams
Class for setting the query parameters of Events API. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventsParams.Builder
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder<P extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams,B extends com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<EventsParams>
CREATOR
-
Constructor Summary
Constructors Constructor Description EventsParams()
EventsParams(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubCategories(java.lang.String... subCategories)
Add sub categories to filter the listvoid
addSubCategory(java.lang.String category)
Add a sub category to filter the list.void
clearSubCategories()
Clear all the categoriesint
describeContents()
java.util.List<java.lang.String>
getSubCategories()
Get the current list of sub categoriesjava.lang.String
getTimeZone()
java.lang.Boolean
isResultWithCategories()
Returns the result with categories flagvoid
removeSubCategory(java.lang.String category)
Remove a sub category to the existing list of categoriesvoid
setResultWithCategories(java.lang.Boolean resultWithCategories)
Set to show the categories associated by the eventsvoid
setTimezone(java.lang.String timezone)
Set the timezone used for the current callvoid
writeToParcel(android.os.Parcel dest, int flags)
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
addCategories, addCategory, clearCategories, getCategories, getItemsPerPage, getLayout, getPage, getSortBy, getSortOrder, removeCategory, setItemsPerPage, setLayout, setPage, setSortBy, setSortOrder
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<EventsParams> CREATOR
-
-
Method Detail
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Overrides:
describeContents
in classcom.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Overrides:
writeToParcel
in classcom.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
addSubCategories
public void addSubCategories(@NonNull java.lang.String... subCategories)
Add sub categories to filter the list- Parameters:
subCategories
- sub categories to filter
-
addSubCategory
public void addSubCategory(@NonNull java.lang.String category)
Add a sub category to filter the list.- Parameters:
category
- category to filter.
-
getSubCategories
@Nullable public java.util.List<java.lang.String> getSubCategories()
Get the current list of sub categories- Returns:
- list of sub categories
-
removeSubCategory
public void removeSubCategory(@NonNull java.lang.String category)
Remove a sub category to the existing list of categories- Parameters:
category
- category to be removed
-
clearSubCategories
public void clearSubCategories()
Clear all the categories
-
setResultWithCategories
public void setResultWithCategories(@Nullable java.lang.Boolean resultWithCategories)
Set to show the categories associated by the events- Parameters:
resultWithCategories
-true
to show the categories associated by the offer
-
isResultWithCategories
@Nullable public java.lang.Boolean isResultWithCategories()
Returns the result with categories flag- Returns:
- result with categories flag
-
setTimezone
public void setTimezone(@Nullable java.lang.String timezone)
Set the timezone used for the current call- Parameters:
timezone
- timezone of the current request
-
getTimeZone
public java.lang.String getTimeZone()
- Returns:
- current timezone set for the current call
-
-