it.dtt.ca.response
Class ProductInfoResponseEvent

java.lang.Object
  extended by it.dtt.ca.response.ResponseEvent
      extended by it.dtt.ca.response.SuccessResponseEvent
          extended by it.dtt.ca.response.ProductInfoResponseEvent

public class ProductInfoResponseEvent
extends SuccessResponseEvent

This class is used to notify a successful response to a request for product status information.


Field Summary
static int LOW_CREDIT
          This is used to specify a Purchase Status which tells the actually inserted smart card has not enough credit to buy this event
static int NO_CREDIT
          This is used to specify a Purchase Status which tells the actually inserted smart card has no credit (if the event costs zero this cannot be stated as a purchase status).
static int NOT_PURCHASABLE
          This is used to specify a Purchase Status which tells the product is not purchasable for CAS reasons (i.e. no access rights on air to be stored on the card)
static int PURCHASABLE
          This is used to specify a Purchase Status which tells the product is purchasable.
static int PURCHASED
          This is used to specify a Purchase Status which tells the product has already been purchased: the specific rights are already found on the smart card.
static int SMART_CARD_ISSUE
          This is used to specify a Purchase Status which tells the actually inserted smart card has some condition that caused the event not to be purchasable.
 
Constructor Summary
ProductInfoResponseEvent(CARequest request, int purchaseStatus, int accessStatus, Product product, boolean isCurrent)
          Constructs ProductInfoResponseEvent.
 
Method Summary
 int getAccessStatus()
          Get the access status of the Product.
 int getPurchaseStatus()
          Get the purchase status of this specific product compared with the access rights present on the smart card and with the amount of credit left.
 boolean isCurrent()
          Informs whether this product is the one which the STB is currently receiving.
 
Methods inherited from class it.dtt.ca.response.ResponseEvent
getRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PURCHASABLE

public static final int PURCHASABLE
This is used to specify a Purchase Status which tells the product is purchasable.

See Also:
Constant Field Values

NOT_PURCHASABLE

public static final int NOT_PURCHASABLE
This is used to specify a Purchase Status which tells the product is not purchasable for CAS reasons (i.e. no access rights on air to be stored on the card)

See Also:
Constant Field Values

PURCHASED

public static final int PURCHASED
This is used to specify a Purchase Status which tells the product has already been purchased: the specific rights are already found on the smart card.

See Also:
Constant Field Values

LOW_CREDIT

public static final int LOW_CREDIT
This is used to specify a Purchase Status which tells the actually inserted smart card has not enough credit to buy this event

See Also:
Constant Field Values

NO_CREDIT

public static final int NO_CREDIT
This is used to specify a Purchase Status which tells the actually inserted smart card has no credit (if the event costs zero this cannot be stated as a purchase status).

See Also:
Constant Field Values

SMART_CARD_ISSUE

public static final int SMART_CARD_ISSUE
This is used to specify a Purchase Status which tells the actually inserted smart card has some condition that caused the event not to be purchasable. The reason can be retrieved using dedicated getStatus method in SmartCard.

See Also:
Constant Field Values
Constructor Detail

ProductInfoResponseEvent

public ProductInfoResponseEvent(CARequest request,
                                int purchaseStatus,
                                int accessStatus,
                                Product product,
                                boolean isCurrent)
Constructs ProductInfoResponseEvent.

Parameters:
request - the CARequest object, that generated this response.
purchaseStatus - the purchase status.
accessStatus - the access status.
product - the product.
isCurrent - whether this is the service on air on which the STB is tuned.
Method Detail

getAccessStatus

public int getAccessStatus()
Get the access status of the Product. It must be one of the constants defined in it.dtt.ca.event.CAAccessEvent.

Returns:
the status of the product.

getPurchaseStatus

public int getPurchaseStatus()
Get the purchase status of this specific product compared with the access rights present on the smart card and with the amount of credit left.

Returns:
the purchase status.

isCurrent

public boolean isCurrent()
Informs whether this product is the one which the STB is currently receiving.

Returns:
TRUE if this is the current service on air on which the STB is tuned.