Package com.mparticle
Class AttributionResult
- java.lang.Object
-
- com.mparticle.AttributionResult
-
public class AttributionResult extends java.lang.ObjectClass 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.StringgetLink()org.json.JSONObjectgetParameters()Parameters of an attribution.intgetServiceProviderId()Get the service provider or integration id associated with this result.AttributionResultsetLink(java.lang.String linkUrl)AttributionResultsetParameters(org.json.JSONObject parameters)AttributionResultsetServiceProviderId(int id)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-