DxRightsInfo Class Reference

DxRightsInfo is an object that contains a set of permissions (i.e. More...

#import <DxRightsInfo.h>

+ Inheritance diagram for DxRightsInfo:

Instance Methods

(id) - initWithRightsObject:
 Initialize the DxRightsInfo object with internal data objects. More...
 

Properties

DxRightsStatus rightsStatus
 Rights Information status. More...
 
BOOL isTimeConstrained
 Indicates whether the license has time constraints, hence start from a certain date and end in other. More...
 
BOOL isIntervalConstrained
 Indicates whether the license has interval constraints, hence how much time from current time can we still have the license valid. More...
 
BOOL isCountConstrained
 Indicates whether the license has count constraints, hence how many times can we play the media. More...
 
NSDate * startTime
 Start date of the time constrained license. Valid only if license is time constrained.
Note: Start date is expressed as the Coordinated Universal Time (UTC). More...
 
NSDate * endTime
 End date of the time constrained license. Valid only if license is time constrained.
Note: End date is expressed as the Coordinated Universal Time (UTC). More...
 
unsigned int intervalPeriodInSeconds
 Indicates how much time do we have in seconds till the license becomes invalid. Valid only if license is interval constrained. More...
 
unsigned int initialCount
 Indicates how many times could the content be played since it was purchased. Valid only if license is count constrained. More...
 
unsigned int countLeft
 Indicates how many times could the content be played from now. Valid only if license is count constrained. More...
 

Detailed Description

DxRightsInfo is an object that contains a set of permissions (i.e.

permission to play, display, execute,...) and a set of constraints (i.e. date-time, count, interval,...).

A DxRightsInfo object can contain one constraint (at most) of every of the following kinds:

  1. Count - The user can use the content for specific number of times.
  2. Date Time - The user can use the content only after a specified start time has arrived (if start time is defined) and until a specified end time arrives (if end time is defined).
  3. Interval - The user can use the content for the specified period of time starting from the first usage of content.

All the constraints apply to all the permissions. The object is valid only if all the constraints are sufficed (i.e. the constraints conditions are ANDed).

Method Documentation

- (id) initWithRightsObject: (const void *)  rightsObject

Initialize the DxRightsInfo object with internal data objects.

For intenal use only.

Parameters
[in]rightsObject- internal data object.
Returns
DxRightsInfo object.

Property Documentation

- (unsigned int) countLeft
readatomicassign

Indicates how many times could the content be played from now. Valid only if license is count constrained.

- (NSDate *) endTime
readatomicretain

End date of the time constrained license. Valid only if license is time constrained.
Note: End date is expressed as the Coordinated Universal Time (UTC).

- (unsigned int) initialCount
readatomicassign

Indicates how many times could the content be played since it was purchased. Valid only if license is count constrained.

- (unsigned int) intervalPeriodInSeconds
readatomicassign

Indicates how much time do we have in seconds till the license becomes invalid. Valid only if license is interval constrained.

- (BOOL) isCountConstrained
readatomicassign

Indicates whether the license has count constraints, hence how many times can we play the media.

- (BOOL) isIntervalConstrained
readatomicassign

Indicates whether the license has interval constraints, hence how much time from current time can we still have the license valid.

- (BOOL) isTimeConstrained
readatomicassign

Indicates whether the license has time constraints, hence start from a certain date and end in other.

- (DxRightsStatus) rightsStatus
readatomicassign

Rights Information status.

- (NSDate *) startTime
readatomicretain

Start date of the time constrained license. Valid only if license is time constrained.
Note: Start date is expressed as the Coordinated Universal Time (UTC).


The documentation for this class was generated from the following file: