Class BadgeParams

  • All Implemented Interfaces:
    android.os.Parcelable

    public class BadgeParams
    extends BaseListQueryParams
    Class for setting the query parameter of the Badges 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<BadgeParams> CREATOR
    • Constructor Detail

      • BadgeParams

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

        public BadgeParams()
    • Method Detail

      • getType

        public java.lang.String getType()
        Get the type of badge to retrieve.
        Returns:
        String type of badge
      • setType

        public void setType​(@Nullable
                            java.lang.String type)
        Set the type of badge to retrieve.
        Parameters:
        type - type of the badge
      • isEarned

        public boolean isEarned()
        Returns the value for the Earned parameter
        Returns:
        boolean
      • setEarned

        public void setEarned​(@Nullable
                              java.lang.Boolean isEarned)
        Set a filter to show Earned badges only
        Parameters:
        isEarned - true if to show earned only, otherwise, false
      • setResultWithCategories

        public void setResultWithCategories​(@Nullable
                                            java.lang.Boolean resultWithCategories)
        Set to show the categories associated with the Badge
        Parameters:
        resultWithCategories - true to show the categories associated by the offer
      • isResultWithCategories

        public boolean isResultWithCategories()
        Return the value for the show the categories
        Returns:
        boolean value for show categories
      • setExpired

        public void setExpired​(@Nullable
                               java.lang.Boolean isExpired)
        Set the flag to show expired or not expired
        Parameters:
        isExpired - true to show expired badges only, otherwise, false
      • getIsExpired

        public boolean getIsExpired()
        Return the value of the expired flag
        Returns:
        boolean value for the expired flag