MPUserSegments Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in MPUserSegments.h

Overview

This class is returned as response from a user segments call. It contains segment ids, expiration, and a flag indicating whether it is expired.

  segmentsIds

The list of user segment ids

@property (nonatomic, strong, readonly, nullable) NSArray<MPSegment*> *segmentsIds

Discussion

The list of user segment ids

Declared In

MPUserSegments.h

  expiration

Contains the date the user segment will expire. If nil, it means the user segment doesn’t expire

@property (nonatomic, strong, readonly, nullable) NSDate *expiration

Discussion

Contains the date the user segment will expire. If nil, it means the user segment doesn’t expire

Declared In

MPUserSegments.h

  expired

Flag indicating whether the user segment is expired or not

@property (nonatomic, readonly) BOOL expired

Discussion

Flag indicating whether the user segment is expired or not

Declared In

MPUserSegments.h

– commaSeparatedSegments

Returns a string with a comma separated list of user segment ids. The same user segment ids in the segmentsIds property

- (nullable NSString *)commaSeparatedSegments

Discussion

Returns a string with a comma separated list of user segment ids. The same user segment ids in the segmentsIds property

Declared In

MPUserSegments.h