Package com.mparticle

Class AttributionResult


  • public class AttributionResult
    extends java.lang.Object
    Class representing the result of an attribution query to an integration partner.
    • Constructor Detail

      • AttributionResult

        public AttributionResult()
    • Method Detail

      • setParameters

        @NonNull
        public AttributionResult setParameters​(@Nullable
                                               org.json.JSONObject parameters)
      • getParameters

        @Nullable
        public org.json.JSONObject getParameters()
        Parameters of an attribution. Use these parameters to programmatically route your users and customize your interface.
        Returns:
        returns a JSONObject, may be null if the integration does not support attribution parameters.
      • setLink

        @NonNull
        public AttributionResult setLink​(@Nullable
                                         java.lang.String linkUrl)
      • getLink

        @Nullable
        public java.lang.String getLink()
      • setServiceProviderId

        @NonNull
        public AttributionResult setServiceProviderId​(int id)
      • getServiceProviderId

        public int getServiceProviderId()
        Get the service provider or integration id associated with this result.
        Returns:
        the id of the associated integration
        See Also:
        MParticle.ServiceProviders
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object