Package com.mparticle
Class AttributionResult
- java.lang.Object
-
- com.mparticle.AttributionResult
-
public class AttributionResult extends java.lang.Object
Class representing the result of an attribution query to an integration partner.
-
-
Constructor Summary
Constructors Constructor Description AttributionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLink()
org.json.JSONObject
getParameters()
Parameters of an attribution.int
getServiceProviderId()
Get the service provider or integration id associated with this result.AttributionResult
setLink(java.lang.String linkUrl)
AttributionResult
setParameters(org.json.JSONObject parameters)
AttributionResult
setServiceProviderId(int id)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-