Modifier and Type | Field and Description |
---|---|
static CallZone |
CallZone.AFRICA
The call zone for Africa.
|
static CallZone |
CallZone.ANZ
The call zone for Australia and New Zeland.
|
static CallZone |
CallZone.ASIA
The call zone for Asia.
|
static CallZone |
CallZone.CANADA
The call zone for Canada.
|
static CallZone |
CallZone.EUROPE
The call zone for Europe.
|
static CallZone |
CallZone.LATINAM
The call zone for Latin America.
|
static CallZone |
CallZone.USA
The call zone for the United States.
|
Modifier and Type | Method and Description |
---|---|
abstract Set<CallZone> |
PhoneCard.allowedZones()
Get the set of call zones that can be called on this phone card.
|
Set<CallZone> |
SmartANZAsia10Card.allowedZones()
Get the set of call zones that can be called on this phone card.
|
static Set<CallZone> |
CallZone.getAllZones()
Produces the set of all valid call zones.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PhoneCard.charge(int minutes,
CallZone zone)
Charge a call of the given number of minutes to the zone.
|
boolean |
SmartANZAsia10Card.charge(int minutes,
CallZone zone)
Charge a call of the given number of minutes to the zone.
|
abstract double |
PhoneCard.costPerMin(CallZone zone)
Get the cost per minute of a call to the argument zone on this phone card.
|
double |
SmartANZAsia10Card.costPerMin(CallZone zone)
Get the cost per minute of a call to the argument zone on this phone
card.
|
int |
PhoneCard.getLimit(CallZone zone)
Get the number of minutes allowed for a call to zone given the balance.
|
abstract boolean |
PhoneCard.isAllowed(CallZone zone)
Check whether a call to the argument zone is allowed for this phone card.
|
boolean |
SmartANZAsia10Card.isAllowed(CallZone zone)
Check whether a call to the argument zone is allowed for this phone card.
|