|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.response.ResponseEvent
it.dtt.ca.response.SuccessResponseEvent
it.dtt.ca.response.ProductInfoResponseEvent
public class ProductInfoResponseEvent
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 |
---|
public static final int PURCHASABLE
public static final int NOT_PURCHASABLE
public static final int PURCHASED
public static final int LOW_CREDIT
public static final int NO_CREDIT
public static final int SMART_CARD_ISSUE
SmartCard
.
Constructor Detail |
---|
public ProductInfoResponseEvent(CARequest request, int purchaseStatus, int accessStatus, Product product, boolean isCurrent)
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 |
---|
public int getAccessStatus()
public int getPurchaseStatus()
public boolean isCurrent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |