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 |
Definition at line 40 of file Youtube.java.
script.media.youtube.Youtube.Youtube | ( | RosRiveScript | rivescript | ) | [inline] |
Definition at line 44 of file Youtube.java.
String script.media.youtube.Youtube.getSearch | ( | ) | [inline, private] |
Get value to search from rivescript user params.
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.
search | Video to search |
startIndex | Start index (first index is 1) |
maxResults | Maximum returned results |
Definition at line 156 of file Youtube.java.
String script.media.youtube.Youtube.getVideoId | ( | String | youtubeUrl | ) | [inline, private] |
Get Video id from url (youtube).
youtubeUrl |
Definition at line 179 of file Youtube.java.
BotReply script.media.youtube.Youtube.launch | ( | ) | [inline] |
Get url from user answer and publish it to library.
Definition at line 90 of file Youtube.java.
BotReply script.media.youtube.Youtube.search | ( | ) | [inline] |
Search videos on youtube from user request.
Definition at line 52 of file Youtube.java.
final RosRiveScript script.media.youtube.Youtube.rivescript [private] |
Definition at line 42 of file Youtube.java.