Class BaseListQueryParams

    • Constructor Detail

      • BaseListQueryParams

        protected BaseListQueryParams​(android.os.Parcel in)
    • Method Detail

      • describeContents

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

        @CallSuper
        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Overrides:
        writeToParcel in class BaseParams
      • addCategories

        public void addCategories​(@NonNull
                                  java.lang.String... categories)
        Add categories to filter the list
        Parameters:
        categories - categories to filter
      • addCategory

        public void addCategory​(@NonNull
                                java.lang.String category)
        Add a category to filter the list.
        Parameters:
        category - category to filter.
      • removeCategory

        public void removeCategory​(@NonNull
                                   java.lang.String category)
        Remove a category to the existing list of categories
        Parameters:
        category - category to be removed
      • clearCategories

        public void clearCategories()
        Clear all the categories
      • setLayout

        public void setLayout​(@Nullable
                              Layout layout)
        Define the layout template from the console
        Parameters:
        layout - the layout template
      • setPage

        public void setPage​(@Nullable
                            java.lang.Integer page)
        Set the offset page parameter
        Parameters:
        page - offset page parameter
      • setItemsPerPage

        public void setItemsPerPage​(@Nullable
                                    java.lang.Integer itemsPerPage)
        Set the max items per page
        Parameters:
        itemsPerPage - max items per page
      • setSortOrder

        public void setSortOrder​(@Nullable
                                 SortOrder order)
        Set the sort order of the list
        Parameters:
        order - The SortOrder. Can either be ascending or descending
      • setSortBy

        public void setSortBy​(@Nullable
                              java.lang.String sortBy)
        Set the property name that will be used to arrange the list
        Parameters:
        sortBy - The property name. Refer to SortBy(may not be updated).
      • getCategories

        @Nullable
        public java.util.List<java.lang.String> getCategories()
        Returns:
        list of categories
      • getLayout

        @Nullable
        public java.lang.String getLayout()
        Returns:
        layout template
      • getPage

        @Nullable
        public java.lang.Integer getPage()
        Returns:
        offset page parameter
      • getItemsPerPage

        @Nullable
        public java.lang.Integer getItemsPerPage()
        Returns:
        max items per page of the list
      • getSortOrder

        @Nullable
        public SortOrder getSortOrder()
        Returns:
        sort order of the list
      • getSortBy

        @Nullable
        public java.lang.String getSortBy()
        Returns:
        property name used to arrange the list