|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.facebook.api.impl.MusicActionsTemplate
public class MusicActionsTemplate
Constructor Summary | |
---|---|
MusicActionsTemplate(OpenGraphOperations openGraphOperations)
|
Method Summary | |
---|---|
String |
createPlaylist(String playlistUrl)
Publishes a "music.playlists" action (indicating that a playlist was created) for the OpenGraph playlist object at the given URL. |
String |
createPlaylist(String playlistUrl,
ActionMetadata metadata)
Publishes a "music.playlists" action (indicating that a playlist was created) for the OpenGraph playlist object at the given URL. |
String |
listen(String objectType,
String url,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph object at the given URL. |
String |
listenToAlbum(String albumUrl)
Publishes a "music.listens" action for the OpenGraph album object at the given URL. |
String |
listenToAlbum(String albumUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph album object at the given URL. |
String |
listenToMusician(String musicianUrl)
Publishes a "music.listens" action for the OpenGraph musician object at the given URL. |
String |
listenToMusician(String musicianUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph musician object at the given URL. |
String |
listenToPlaylist(String playlistUrl)
Publishes a "music.listens" action for the OpenGraph playlist object at the given URL. |
String |
listenToPlaylist(String playlistUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph playlist object at the given URL. |
String |
listenToRadioStation(String radioStationUrl)
Publishes a "music.listens" action for the OpenGraph radio station object at the given URL. |
String |
listenToRadioStation(String radioStationUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph radio station object at the given URL. |
String |
listenToSong(String songUrl)
Publishes a "music.listens" action for the OpenGraph song object at the given URL. |
String |
listenToSong(String songUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph song object at the given URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MusicActionsTemplate(OpenGraphOperations openGraphOperations)
Method Detail |
---|
public String listenToSong(String songUrl)
MusicActions
listenToSong
in interface MusicActions
songUrl
- The URL of the song that was listened to. Must reference an OpenGraph object of type "music.song".
public String listenToSong(String songUrl, ActionMetadata metadata)
MusicActions
listenToSong
in interface MusicActions
songUrl
- The URL of the song that was listened to. Must reference an OpenGraph object of type "music.song".metadata
- Action metadata to be applied to the action.
public String listenToAlbum(String albumUrl)
MusicActions
listenToAlbum
in interface MusicActions
albumUrl
- The URL of the album that was listened to. Must reference an OpenGraph object of type "music.album".
public String listenToAlbum(String albumUrl, ActionMetadata metadata)
MusicActions
listenToAlbum
in interface MusicActions
albumUrl
- The URL of the album that was listened to. Must reference an OpenGraph object of type "music.album".metadata
- Action metadata to be applied to the action.
public String listenToMusician(String musicianUrl)
MusicActions
listenToMusician
in interface MusicActions
musicianUrl
- The profile URL of the musician that was listened to. Must reference an OpenGraph object of type "profile".
public String listenToMusician(String musicianUrl, ActionMetadata metadata)
MusicActions
listenToMusician
in interface MusicActions
musicianUrl
- The profile URL of the musician that was listened to. Must reference an OpenGraph object of type "profile".metadata
- Action metadata to be applied to the action.
public String listenToRadioStation(String radioStationUrl)
MusicActions
listenToRadioStation
in interface MusicActions
radioStationUrl
- The URL of the radio station that was listened to. Must reference an OpenGraph object of type "music.radio_station".
public String listenToRadioStation(String radioStationUrl, ActionMetadata metadata)
MusicActions
listenToRadioStation
in interface MusicActions
radioStationUrl
- The URL of the radio station that was listened to. Must reference an OpenGraph object of type "music.radio_station".metadata
- Action metadata to be applied to the action.
public String listenToPlaylist(String playlistUrl)
MusicActions
listenToPlaylist
in interface MusicActions
playlistUrl
- The URL of the playlist that was listened to. Must reference an OpenGraph object of type "music.playlist".
public String listenToPlaylist(String playlistUrl, ActionMetadata metadata)
MusicActions
listenToPlaylist
in interface MusicActions
playlistUrl
- The URL of the playlist that was listened to. Must reference an OpenGraph object of type "music.playlist".metadata
- Action metadata to be applied to the action.
public String listen(String objectType, String url, ActionMetadata metadata)
MusicActions
listen
in interface MusicActions
objectType
- The type of object being listened to. E.g., "song", "album", "musician", "radio_station", or "playlist".url
- The URL of the object being listened to.metadata
- Action metadata to be applied to the action.
public String createPlaylist(String playlistUrl)
MusicActions
createPlaylist
in interface MusicActions
playlistUrl
- The URL of the playlist that was created. Must reference an OpenGraph object of type "music.playlist".
public String createPlaylist(String playlistUrl, ActionMetadata metadata)
MusicActions
createPlaylist
in interface MusicActions
playlistUrl
- The URL of the playlist that was created. Must reference an OpenGraph object of type "music.playlist".metadata
- Action metadata to be applied to the action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |