Class DecisionScope


  • public class DecisionScope
    extends Object
    DecisionScope class represents a scope used to fetch personalized offers from the Experience Edge network.
    • Constructor Detail

      • DecisionScope

        public DecisionScope​(String name)
        Constructor creates a DecisionScope using the provided name.
        Parameters:
        name - String containing scope name.
      • DecisionScope

        public DecisionScope​(String activityId,
                             String placementId)
        Constructor creates a DecisionScope using the provided activityId and placementId.

        This constructor assumes the item count for the given scope to be 1.

        Parameters:
        activityId - String containing activity identifier for the given scope.
        placementId - String containing placement identifier for the given scope.
      • DecisionScope

        public DecisionScope​(String activityId,
                             String placementId,
                             int itemCount)
        Constructor creates a DecisionScope using the provided activityId, placementId and itemCount.
        Parameters:
        activityId - String containing activity identifier for the given scope.
        placementId - String containing placement identifier for the given scope.
        itemCount - String containing number of items to be returned for the given scope.
    • Method Detail

      • getName

        public String getName()
        Gets the name for this scope.
        Returns:
        String containing the scope name.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object