bing.requests
Class BingPhonebookRequest
java.lang.Object
bing.requests.BingRequest
bing.requests.BingPhonebookRequest
public class BingPhonebookRequest
- extends BingRequest
Request object to be used when requesting phonebook/local results.
Method Summary |
java.lang.String |
requestOptions()
Specifies request specific options to be passed to the API |
void |
setCount(long count)
|
void |
setFileType(java.lang.String filetype)
|
void |
setLocId(java.lang.String locId)
|
void |
setOffset(long offset)
|
void |
setSortBy(java.lang.String sortby)
|
java.lang.String |
sourceType()
Specifies the source type of the current request object. |
Methods inherited from class bing.requests.BingRequest |
hashCode, removeParentOptions, setAdult, setLanguage, setLatitude, setLongitude, setMarket, setOptions, setRadius, setVersion, toString |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
PHONEBOOK_SORT_OPTION_DEFAULT
public static final java.lang.String PHONEBOOK_SORT_OPTION_DEFAULT
- See Also:
- Constant Field Values
PHONEBOOK_SORT_OPTION_DISTANCE
public static final java.lang.String PHONEBOOK_SORT_OPTION_DISTANCE
- See Also:
- Constant Field Values
PHONEBOOK_SORT_OPTION_RELEVANCE
public static final java.lang.String PHONEBOOK_SORT_OPTION_RELEVANCE
- See Also:
- Constant Field Values
BingPhonebookRequest
public BingPhonebookRequest()
requestOptions
public java.lang.String requestOptions()
- Description copied from class:
BingRequest
- Specifies request specific options to be passed to the API
- Overrides:
requestOptions
in class BingRequest
- Returns:
- A string representing the various set API parameters
sourceType
public java.lang.String sourceType()
- Description copied from class:
BingRequest
- Specifies the source type of the current request object.
- Specified by:
sourceType
in class BingRequest
- Returns:
- A string representing the source type of the current object.
setCount
public void setCount(long count)
setOffset
public void setOffset(long offset)
setFileType
public void setFileType(java.lang.String filetype)
setLocId
public void setLocId(java.lang.String locId)
setSortBy
public void setSortBy(java.lang.String sortby)
- Parameters:
sortby
- One of the PHONEBOOK_SORT_OPTION_ options.