bing.requests
Class BingVideoRequest
java.lang.Object
bing.requests.BingRequest
bing.requests.BingVideoRequest
public class BingVideoRequest
- extends BingRequest
Request object to be used when requesting video results.
Method Summary |
java.lang.String |
requestOptions()
Specifies request specific options to be passed to the API |
void |
setCount(long count)
|
void |
setFilters(java.lang.String filters)
|
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 |
VIDEO_SORT_OPTION_DATE
public static final java.lang.String VIDEO_SORT_OPTION_DATE
- See Also:
- Constant Field Values
VIDEO_SORT_OPTION_RELEVANCE
public static final java.lang.String VIDEO_SORT_OPTION_RELEVANCE
- See Also:
- Constant Field Values
VIDEO_FILTERS_SEPERATOR
public static final java.lang.String VIDEO_FILTERS_SEPERATOR
- See Also:
- Constant Field Values
VIDEO_FILTERS_DURATION_SHORT
public static final java.lang.String VIDEO_FILTERS_DURATION_SHORT
- See Also:
- Constant Field Values
VIDEO_FILTERS_DURATION_MEDIUM
public static final java.lang.String VIDEO_FILTERS_DURATION_MEDIUM
- See Also:
- Constant Field Values
VIDEO_FILTERS_DURATION_LONG
public static final java.lang.String VIDEO_FILTERS_DURATION_LONG
- See Also:
- Constant Field Values
VIDEO_FILTERS_ASPECT_STANDARD
public static final java.lang.String VIDEO_FILTERS_ASPECT_STANDARD
- See Also:
- Constant Field Values
VIDEO_FILTERS_ASPECT_WIDESCREEN
public static final java.lang.String VIDEO_FILTERS_ASPECT_WIDESCREEN
- See Also:
- Constant Field Values
VIDEO_FILTERS_RESOLUTION_LOW
public static final java.lang.String VIDEO_FILTERS_RESOLUTION_LOW
- See Also:
- Constant Field Values
VIDEO_FILTERS_RESOLUTION_MEDIUM
public static final java.lang.String VIDEO_FILTERS_RESOLUTION_MEDIUM
- See Also:
- Constant Field Values
VIDEO_FILTERS_RESOLUTION_HIGH
public static final java.lang.String VIDEO_FILTERS_RESOLUTION_HIGH
- See Also:
- Constant Field Values
BingVideoRequest
public BingVideoRequest()
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)
setFilters
public void setFilters(java.lang.String filters)
- Parameters:
filters
- One or more combinations of the VIDEO_FILTERS_ options separated by VIDEO_FILTERS_SEPERATOR. You cannot include more than one
value for duration in the same request.
setSortBy
public void setSortBy(java.lang.String sortby)
- Parameters:
adult
- One of the VIDEO_SORT_OPTION_ options.