Public Member Functions | Private Member Functions | Private Attributes
script.media.youtube.Youtube Class Reference

List of all members.

Public Member Functions

BotReply launch ()
BotReply search ()
 Youtube (RosRiveScript rivescript)

Private Member Functions

String getSearch ()
URL getSearchUrl (String search, int startIndex, int maxResults)
String getVideoId (String youtubeUrl)

Private Attributes

final RosRiveScript rivescript

Detailed Description

Author:
Mickael Gaillard <mick.gaillard@gmail.com>
Erwan Lehuitouze <erwan.lehuitouze@gmail.com>

Definition at line 40 of file Youtube.java.


Constructor & Destructor Documentation

Definition at line 44 of file Youtube.java.


Member Function Documentation

String script.media.youtube.Youtube.getSearch ( ) [inline, private]

Get value to search from rivescript user params.

Returns:
Value to search

Definition at line 134 of file Youtube.java.

URL script.media.youtube.Youtube.getSearchUrl ( String  search,
int  startIndex,
int  maxResults 
) [inline, private]

Get Youtube API Search url.

Parameters:
searchVideo to search
startIndexStart index (first index is 1)
maxResultsMaximum returned results
Returns:
Search url

Definition at line 156 of file Youtube.java.

String script.media.youtube.Youtube.getVideoId ( String  youtubeUrl) [inline, private]

Get Video id from url (youtube).

Parameters:
youtubeUrl
Returns:

Definition at line 179 of file Youtube.java.

Get url from user answer and publish it to library.

Returns:
Name of launched video

Definition at line 90 of file Youtube.java.

Search videos on youtube from user request.

Returns:
Number of finded videos

Definition at line 52 of file Youtube.java.


Member Data Documentation

Definition at line 42 of file Youtube.java.


The documentation for this class was generated from the following file:


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50