|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.ppv.Product
it.dtt.ca.ppv.Subscription
public class Subscription
This class represents a subscription for a service Where methods take an array as an input parameter, implementations should take a copy of the array. Where methods return an array, a copy should be returned and modifications to the array should be ignored by the implementation until or unless the array is passed back to the implementation as a parameter to a method call.
Field Summary |
---|
Fields inherited from class it.dtt.ca.ppv.Product |
---|
GENERIC_PRODUCT, PPT_EVENT, PPV_EVENT, PPV_PACKAGE, SUBSCRIPTION |
Constructor Summary | |
---|---|
protected |
Subscription(java.lang.String id,
java.lang.String name,
javax.tv.locator.Locator[] services,
java.util.Date start,
java.util.Date end)
Create a Subscription object. |
Method Summary | |
---|---|
javax.tv.locator.Locator[] |
getServices()
Get the list of services that make part of this Subscription. |
java.util.Date |
getSubscriptionEnd()
Retrieves the end date for validity of the subscription |
java.util.Date |
getSubscriptionStart()
Retrieves the start date for validity of the subscription |
int |
getType()
Returns the product type |
boolean |
isFree()
Check if the product is freely viewable. |
Methods inherited from class it.dtt.ca.ppv.Product |
---|
equals, getContainedProducts, getDescription, getExtendedDescription, getId, getName, getPreviewTime, getPrice, getPrivateData, getPurchaseWindowEndTime, getPurchaseWindowStartTime, hashCode, setDescription, setExtendedDescription, setPreviewTime, setPrivateData, setPurchaseWindowEndTime, setPurchaseWindowStartTime |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Subscription(java.lang.String id, java.lang.String name, javax.tv.locator.Locator[] services, java.util.Date start, java.util.Date end)
id
- the subscription service ID.name
- the subscription service name.services
- the services that make part of this Subscription.start
- the starting date of the subscription service.end
- the ending date of the subscription service.Method Detail |
---|
public java.util.Date getSubscriptionStart()
public java.util.Date getSubscriptionEnd()
public javax.tv.locator.Locator[] getServices()
public boolean isFree()
Product
isFree
in class Product
public int getType()
getType
in class Product
Product.SUBSCRIPTION
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |