Class DecisionScope

java.lang.Object
com.adobe.marketing.mobile.optimize.DecisionScope

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

    • 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 Details

    • getName

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object