public class VideoActionsTemplate extends Object implements VideoActions
| Constructor and Description |
|---|
VideoActionsTemplate(OpenGraphOperations openGraphOperations) |
| Modifier and Type | Method and Description |
|---|---|
String |
rateEpisode(String episodeUrl,
float rating,
int scale)
Publishes a "video.rates" action for the OpenGraph episode object at the given URL.
|
String |
rateEpisode(String episodeUrl,
float rating,
int scale,
ActionMetadata metadata)
Publishes a "video.rates" action for the OpenGraph episode object at the given URL.
|
String |
rateMovie(String movieUrl,
float rating,
int scale)
Publishes a "video.rates" action for the OpenGraph movie object at the given URL.
|
String |
rateMovie(String movieUrl,
float rating,
int scale,
ActionMetadata metadata)
Publishes a "video.rates" action for the OpenGraph movie object at the given URL.
|
String |
rateTvShow(String tvShowUrl,
float rating,
int scale)
Publishes a "video.rates" action for the OpenGraph TV show object at the given URL.
|
String |
rateTvShow(String tvShowUrl,
float rating,
int scale,
ActionMetadata metadata)
Publishes a "video.rates" action for the OpenGraph TV show object at the given URL.
|
String |
rateVideo(String otherUrl,
float rating,
int scale)
Publishes a "video.rates" action for the OpenGraph video object at the given URL.
|
String |
rateVideo(String otherUrl,
float rating,
int scale,
ActionMetadata metadata)
Publishes a "video.rates" action for the OpenGraph video object at the given URL.
|
String |
rateVideo(String videoType,
String videoUrl,
float rating,
int scale,
ActionMetadata metadata)
Publishes a "video.rates" action for the OpenGraph video object at the given URL.
|
String |
wantsToWatch(String videoType,
String videoUrl,
ActionMetadata metadata)
Publishes a "video.wants_to_watch" action for the OpenGraph video object at the given URL.
|
String |
wantsToWatchEpisode(String episodeUrl)
Publishes a "video.wants_to_watch" action for the OpenGraph episode object at the given URL.
|
String |
wantsToWatchEpisode(String episodeUrl,
ActionMetadata metadata)
Publishes a "video.wants_to_watch" action for the OpenGraph episode object at the given URL.
|
String |
wantsToWatchMovie(String movieUrl)
Publishes a "video.wants_to_watch" action for the OpenGraph movie object at the given URL.
|
String |
wantsToWatchMovie(String movieUrl,
ActionMetadata metadata)
Publishes a "video.wants_to_watch" action for the OpenGraph movie object at the given URL.
|
String |
wantsToWatchTvShow(String tvShowUrl)
Publishes a "video.wants_to_watch" action for the OpenGraph TV show object at the given URL.
|
String |
wantsToWatchTvShow(String tvShowUrl,
ActionMetadata metadata)
Publishes a "video.wants_to_watch" action for the OpenGraph TV show object at the given URL.
|
String |
wantsToWatchVideo(String otherUrl)
Publishes a "video.wants_to_watch" action for the OpenGraph video object at the given URL.
|
String |
wantsToWatchVideo(String otherUrl,
ActionMetadata metadata)
Publishes a "video.wants_to_watch" action for the OpenGraph video object at the given URL.
|
String |
watchEpisode(String episodeUrl)
Publishes a "video.watches" action for the OpenGraph episode object at the given URL.
|
String |
watchEpisode(String episodeUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph episode object at the given URL.
|
String |
watchMovie(String movieUrl)
Publishes a "video.watches" action for the OpenGraph movie object at the given URL.
|
String |
watchMovie(String movieUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph movie object at the given URL.
|
String |
watchTvEpisode(String tvEpisodeUrl)
Publishes a "video.watches" action for the OpenGraph TV episode object at the given URL.
|
String |
watchTvEpisode(String tvShowUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph TV episode object at the given URL.
|
String |
watchTvShow(String tvShowUrl)
Publishes a "video.watches" action for the OpenGraph TV show object at the given URL.
|
String |
watchTvShow(String tvShowUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph TV show object at the given URL.
|
String |
watchVideo(String videoUrl)
Publishes a "video.watches" action for the OpenGraph video object at the given URL.
|
String |
watchVideo(String videoUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph video object at the given URL.
|
String |
watchVideo(String videoType,
String videoUrl,
ActionMetadata metadata)
Publishes a "video.watches" action for the OpenGraph video object at the given URL.
|
public VideoActionsTemplate(OpenGraphOperations openGraphOperations)
public String watchMovie(String movieUrl)
VideoActionswatchMovie in interface VideoActionsmovieUrl - The URL of the movie that is being watched. Must reference an OpenGraph object of type "video.movie".public String watchMovie(String movieUrl, ActionMetadata metadata)
VideoActionswatchMovie in interface VideoActionsmovieUrl - The URL of the movie that is being watched. Must reference an OpenGraph object of type "video.movie".metadata - Action metadata to be applied to the action.public String watchTvShow(String tvShowUrl)
VideoActionswatchTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is being watched. Must reference an OpenGraph object of type "video.tv_show".public String watchTvShow(String tvShowUrl, ActionMetadata metadata)
VideoActionswatchTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is being watched. Must reference an OpenGraph object of type "video.tv_show".metadata - Action metadata to be applied to the action.public String watchTvEpisode(String tvEpisodeUrl)
VideoActionswatchTvEpisode in interface VideoActionstvEpisodeUrl - The URL of the TV episode that is being watched. Must reference an OpenGraph object of type "video.episode".public String watchTvEpisode(String tvShowUrl, ActionMetadata metadata)
VideoActionswatchTvEpisode in interface VideoActionstvShowUrl - The URL of the TV episode that is being watched. Must reference an OpenGraph object of type "video.episode".metadata - Action metadata to be applied to the action.public String watchEpisode(String episodeUrl)
VideoActionswatchEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is being watched. Must reference an OpenGraph object of type "video.episode".public String watchEpisode(String episodeUrl, ActionMetadata metadata)
VideoActionswatchEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is being watched. Must reference an OpenGraph object of type "video.episode".metadata - Action metadata to be applied to the action.public String watchVideo(String videoUrl)
VideoActionswatchVideo in interface VideoActionsvideoUrl - The URL of the video that is being watched. Must reference an OpenGraph object of type "video.other".public String watchVideo(String videoUrl, ActionMetadata metadata)
VideoActionswatchVideo in interface VideoActionsvideoUrl - The URL of the video that is being watched. Must reference an OpenGraph object of type "video.other".metadata - Action metadata to be applied to the action.public String watchVideo(String videoType, String videoUrl, ActionMetadata metadata)
VideoActionswatchVideo in interface VideoActionsvideoType - The type of video being watched. E.g., "movie", "tv_show", "tv_episode", "episode", "other", etc.videoUrl - The URL of the video that is being watched. Must reference an OpenGraph object of type "video.other", "video.movie", "video.tv_show", or "video.episode".metadata - Action metadata to be applied to the action.public String rateMovie(String movieUrl, float rating, int scale)
VideoActionsrateMovie in interface VideoActionsmovieUrl - The URL of the movie that is being rated. Must reference an OpenGraph object of type "video.movie".rating - The rating given to the movie, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.public String rateMovie(String movieUrl, float rating, int scale, ActionMetadata metadata)
VideoActionsrateMovie in interface VideoActionsmovieUrl - The URL of the movie that is being rated. Must reference an OpenGraph object of type "video.movie".rating - The rating given to the movie, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.metadata - Action metadata to be applied to the action. May be an instance of RatingActionMetadata to apply review text and/or a review link to the rating.public String rateEpisode(String episodeUrl, float rating, int scale)
VideoActionsrateEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is being rated. Must reference an OpenGraph object of type "video.episode".rating - The rating given to the movie, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.public String rateEpisode(String episodeUrl, float rating, int scale, ActionMetadata metadata)
VideoActionsrateEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is being rated. Must reference an OpenGraph object of type "video.episode".rating - The rating given to the episode, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.metadata - Action metadata to be applied to the action. May be an instance of RatingActionMetadata to apply review text and/or a review link to the rating.public String rateTvShow(String tvShowUrl, float rating, int scale)
VideoActionsrateTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is being rated. Must reference an OpenGraph object of type "video.tv_show".rating - The rating given to the movie, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.public String rateTvShow(String tvShowUrl, float rating, int scale, ActionMetadata metadata)
VideoActionsrateTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is being rated. Must reference an OpenGraph object of type "video.tv_show".rating - The rating given to the TV show, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.metadata - Action metadata to be applied to the action. May be an instance of RatingActionMetadata to apply review text and/or a review link to the rating.public String rateVideo(String otherUrl, float rating, int scale)
VideoActionsrateVideo in interface VideoActionsotherUrl - The URL of the video that is being rated. Must reference an OpenGraph object of type "video.other".rating - The rating given to the video, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.public String rateVideo(String otherUrl, float rating, int scale, ActionMetadata metadata)
VideoActionsrateVideo in interface VideoActionsotherUrl - The URL of the video that is being rated. Must reference an OpenGraph object of type "video.other".rating - The rating given to the video, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.metadata - Action metadata to be applied to the action. May be an instance of RatingActionMetadata to apply review text and/or a review link to the rating.public String rateVideo(String videoType, String videoUrl, float rating, int scale, ActionMetadata metadata)
VideoActionsrateVideo in interface VideoActionsvideoType - The type of video being rated. E.g., "movie", "tv_show", "tv_episode", "episode", "other", etc.videoUrl - The URL of the video that is being rated. Must reference an OpenGraph object of type "video.other", "video.movie", "video.tv_show", or "video.episode".rating - The rating given to the video, relative to the scale attribute. (e.g., "{rating} out of {scale} stars")scale - The maximum rating possible.metadata - Action metadata to be applied to the action. May be an instance of RatingActionMetadata to apply review text and/or a review link to the rating.public String wantsToWatchMovie(String movieUrl)
VideoActionswantsToWatchMovie in interface VideoActionsmovieUrl - The URL of the movie that is wanted to be watched. Must reference an OpenGraph object of type "video.movie".public String wantsToWatchMovie(String movieUrl, ActionMetadata metadata)
VideoActionswantsToWatchMovie in interface VideoActionsmovieUrl - The URL of the movie that is wanted to be watched. Must reference an OpenGraph object of type "video.movie".metadata - Action metadata to be applied to the action. May be an instance of WatchActionMetadata.public String wantsToWatchTvShow(String tvShowUrl)
VideoActionswantsToWatchTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is wanted to be watched. Must reference an OpenGraph object of type "video.tv_show".public String wantsToWatchTvShow(String tvShowUrl, ActionMetadata metadata)
VideoActionswantsToWatchTvShow in interface VideoActionstvShowUrl - The URL of the TV show that is wanted to be watched. Must reference an OpenGraph object of type "video.tv_show".metadata - Action metadata to be applied to the action. May be an instance of WatchActionMetadata.public String wantsToWatchEpisode(String episodeUrl)
VideoActionswantsToWatchEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is wanted to be watched. Must reference an OpenGraph object of type "video.episode".public String wantsToWatchEpisode(String episodeUrl, ActionMetadata metadata)
VideoActionswantsToWatchEpisode in interface VideoActionsepisodeUrl - The URL of the episode that is wanted to be watched. Must reference an OpenGraph object of type "video.episode".metadata - Action metadata to be applied to the action. May be an instance of WatchActionMetadata.public String wantsToWatchVideo(String otherUrl)
VideoActionswantsToWatchVideo in interface VideoActionsotherUrl - The URL of the video that is wanted to be watched. Must reference an OpenGraph object of type "video.other".public String wantsToWatchVideo(String otherUrl, ActionMetadata metadata)
VideoActionswantsToWatchVideo in interface VideoActionsotherUrl - The URL of the video that is wanted to be watched. Must reference an OpenGraph object of type "video.other".metadata - Action metadata to be applied to the action. May be an instance of WatchActionMetadata.public String wantsToWatch(String videoType, String videoUrl, ActionMetadata metadata)
VideoActionswantsToWatch in interface VideoActionsvideoType - The type of video that is wanted to be watched. E.g., "movie", "tv_show", "tv_episode", "episode", "other", etc.videoUrl - The URL of the video that is wanted to be watched. Must reference an OpenGraph object of type "video.other".metadata - Action metadata to be applied to the action. May be an instance of WatchActionMetadata.