Package com.mparticle.segmentation
Class SegmentMembership
- java.lang.Object
-
- com.mparticle.segmentation.SegmentMembership
-
public class SegmentMembership extends java.lang.Object
This class is returned as response from a user segments call. It contains segment ids, expiration, and a flag indicating whether it is expired.
-
-
Constructor Summary
Constructors Constructor Description SegmentMembership(java.util.ArrayList<Segment> ids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommaSeparatedIds()
Returns a String with a comma separated list of user segment IDs.java.util.ArrayList<Segment>
getSegments()
The list of user segment IDs.java.lang.String
toString()
Returns a String with a comma separated list of user segment IDs.
-
-
-
Constructor Detail
-
SegmentMembership
public SegmentMembership(@NonNull java.util.ArrayList<Segment> ids)
-
-
Method Detail
-
getSegments
@NonNull public java.util.ArrayList<Segment> getSegments()
The list of user segment IDs.
-
toString
@NonNull public java.lang.String toString()
Returns a String with a comma separated list of user segment IDs.- Overrides:
toString
in classjava.lang.Object
-
getCommaSeparatedIds
@NonNull public java.lang.String getCommaSeparatedIds()
Returns a String with a comma separated list of user segment IDs.
-
-