Class EventsParams

  • All Implemented Interfaces:
    android.os.Parcelable

    public class EventsParams
    extends BaseListQueryParams
    Class for setting the query parameters of Events API. All Nullable parameters means you can remove the parameter by passing a null value.
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<EventsParams> CREATOR
    • Constructor Detail

      • EventsParams

        public EventsParams()
      • EventsParams

        public EventsParams​(android.os.Parcel in)
    • Method Detail

      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
        Overrides:
        describeContents in class BaseListQueryParams
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Overrides:
        writeToParcel in class 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