Constructor and Description |
---|
CallerIDImpl(String number,
String name)
Creates a caller ID.
|
Modifier and Type | Method and Description |
---|---|
static CallerID |
buildFromComponents(String firstname,
String lastname,
String number)
This is a little helper class which will buid the name component of a
clid from the first and lastnames.
|
String |
formatted()
Formats and returns the caller ID in an asterisk specific format suitable
for passing to the likes of the originate action.
|
String |
getName()
Gets the name component of the caller id.
|
String |
getNumber()
Gets the number component of the caller id.
|
boolean |
isHideCallerID() |
boolean |
isUnknown()
Returns true if the caller id number is blank or equal to 'unknown'.
|
void |
setHideCallerID(boolean hide)
Controls whether this caller id should be presented to the remote end.
|
String |
toString() |
public String getNumber()
CallerID
public String getName()
CallerID
public static CallerID buildFromComponents(String firstname, String lastname, String number)
firstname
- the person's firstname, may be null.lastname
- the person's lastname, may be nullnumber
- the phone number.public String formatted()
public void setHideCallerID(boolean hide)
CallerID
setHideCallerID
in interface CallerID
hide
- - if true then the caller id will be hidden.public boolean isHideCallerID()
isHideCallerID
in interface CallerID
Copyright © 2004–2021. All rights reserved.