Class BadgesAPI

  • All Implemented Interfaces:
    RestController

    public class BadgesAPI
    extends Controller
    Class for setting the query parameters of Badges API All Nullable parameters mean you can remove the parameter by passing null value.
    • Constructor Detail

      • BadgesAPI

        public BadgesAPI()
    • Method Detail

      • getBadge

        public void getBadge​(BadgeParams badgeParams,
                             boolean clearCache,
                             ListenerModel<BaseModel<Badge>,​Badge> listener)
        Get the Badge details using the id from the BadgeParams
        Parameters:
        badgeParams - BadgeParams query parameters
        clearCache - true to clear cache, otherwise false
        listener - callback for the API
      • getBadges

        public void getBadges​(BadgeParams badgeParams,
                              boolean clearCache,
                              ListenerModel<BaseModel<Metadata>,​Metadata> listener)
        Get all available/published badges
        Parameters:
        badgeParams - BadgeParams query parameters
        clearCache - boolean true to clear cache, otherwise false
        listener - callback for the API
      • getMemberBadges

        public void getMemberBadges​(BadgeParams badgeParams,
                                    boolean clearCache,
                                    ListenerModel<BaseModel<Badges>,​Badges> listener)
        Get all the badges awarded to a member
        Parameters:
        badgeParams - BadgeParams query parameters
        clearCache - boolean true to clear cache, otherwise false
        listener - callback for the API