Class PlacesParams

  • All Implemented Interfaces:
    android.os.Parcelable

    public class PlacesParams
    extends BaseListQueryParams
    Class for setting the query parameters of Places 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<PlacesParams> CREATOR
    • Constructor Detail

      • PlacesParams

        public PlacesParams​(android.os.Parcel in)
      • PlacesParams

        public PlacesParams()
    • 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
      • getQuery

        @Nullable
        public java.lang.String getQuery()
        Returns search parameter
        Returns:
        search parameter
      • setQuery

        public void setQuery​(@Nullable
                             java.lang.String query)
        Set search parameter
        Parameters:
        query - search parameter
      • getLatitude

        @Nullable
        public java.lang.Double getLatitude()
        Returns place latitude value
        Returns:
        place latitude value
      • setLatitude

        public void setLatitude​(@Nullable
                                java.lang.Double lat)
        Set place latitude value
        Parameters:
        lat - place latitude value
      • getLongitude

        @Nullable
        public java.lang.Double getLongitude()
        Returns place longitude value
        Returns:
        place longitude value
      • setLongitude

        public void setLongitude​(@Nullable
                                 java.lang.Double longitude)
        Set place longitude value
        Parameters:
        longitude - place longitude value
      • getDistance

        @Nullable
        public java.lang.Integer getDistance()
        Returns distance parameter in miles
        Returns:
        Distance parameter in miles
      • setDistance

        public void setDistance​(@Nullable
                                java.lang.Integer distance)
        Set distance parameter in miles
        Parameters:
        distance - Distance parameter in miles
      • getUnit

        @Nullable
        public java.lang.String getUnit()
        Returns unit used for searching place distance
        Returns:
        unit used for searching place distance
      • setUnit

        public void setUnit​(@Nullable
                            java.lang.String unit)
        Set unit used for searching place distance
        Parameters:
        unit - unit used for searching place distance
      • getAddress

        @Nullable
        public java.lang.String getAddress()
        Returns place address
        Returns:
        place address
      • setAddress

        public void setAddress​(@Nullable
                               java.lang.String address)
        Set place address
        Parameters:
        address - place address
      • isWithClientEvents

        @Nullable
        public java.lang.Boolean isWithClientEvents()
        Returns the flag that was set to show places with client events
        Returns:
        with client events flag
      • setWithClientEvents

        public void setWithClientEvents​(@Nullable
                                        java.lang.Boolean withClientEvents)
        Sets the flag to show places with client events
        Parameters:
        withClientEvents - flag to show places with client events
      • getIntegrationId

        @Nullable
        public java.lang.String getIntegrationId()
        Returns the integration id of the place
        Returns:
        integration id
      • setIntegrationId

        public void setIntegrationId​(@Nullable
                                     java.lang.String integrationId)
        Set the integration id of the place
        Parameters:
        integrationId - integration id of the place
      • getAction

        @Nullable
        public java.lang.String getAction()
        Returns region transition type
        Returns:
        region transition type
      • setAction

        public void setAction​(@Nullable
                              java.lang.String action)
        Set region transition type
        Parameters:
        action - region transition type