A Song object, used along with the Songs data source (using the Genius API.
This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set. The Song object is typically obtained from calling bridges::connect::DataSource::getSongData() or bridges::connect::DataSource::getSong().
Refer to tutorial for example of using this feature: https://bridgesuncc.github.io/tutorials/Data_Song_Lyrics.html
- Author
- David Burlinson
- Date
- 5/21/18
◆ Song() [1/2]
bridges.data_src_dependent.Song.Song |
( |
| ) |
|
◆ Song() [2/2]
bridges.data_src_dependent.Song.Song |
( |
String |
artist, |
|
|
String |
song, |
|
|
String |
album, |
|
|
String |
lyrics, |
|
|
String |
release_date |
|
) |
| |
Song constructor
- Parameters
-
artist | artist of song |
song | song title |
album | album title |
lyrics | lyrics of song (string) |
release_date | date released |
◆ getAlbumTitle()
String bridges.data_src_dependent.Song.getAlbumTitle |
( |
| ) |
|
Get album title containing the song
- Returns
- album title (string)
◆ getArtist()
String bridges.data_src_dependent.Song.getArtist |
( |
| ) |
|
Get song artist
- Returns
- artist of song
◆ getLyrics()
String bridges.data_src_dependent.Song.getLyrics |
( |
| ) |
|
Get lyrics of the song
- Returns
- lyrics of song (string)
◆ getReleaseDate()
String bridges.data_src_dependent.Song.getReleaseDate |
( |
| ) |
|
Get release date of the song
- Returns
- release date of song (string)
◆ getSongTitle()
String bridges.data_src_dependent.Song.getSongTitle |
( |
| ) |
|
Get song title
- Returns
- title of song (string)
◆ setAlbumTitle()
void bridges.data_src_dependent.Song.setAlbumTitle |
( |
String |
album | ) |
|
Set song album
- Parameters
-
◆ setArtist()
void bridges.data_src_dependent.Song.setArtist |
( |
String |
artist | ) |
|
Set song artist
- Parameters
-
◆ setLyrics()
void bridges.data_src_dependent.Song.setLyrics |
( |
String |
lyrics | ) |
|
Set song lyrics
- Parameters
-
◆ setReleaseDate()
void bridges.data_src_dependent.Song.setReleaseDate |
( |
String |
release_date | ) |
|
Set release date of song
- Parameters
-
release_date | date of release to set |
◆ setSongTitle()
void bridges.data_src_dependent.Song.setSongTitle |
( |
String |
song | ) |
|
Set song title
- Parameters
-
◆ album
String bridges.data_src_dependent.Song.album |
|
package |
◆ lyrics
String bridges.data_src_dependent.Song.lyrics |
|
package |
◆ release_date
String bridges.data_src_dependent.Song.release_date |
|
package |
◆ song
String bridges.data_src_dependent.Song.song |
|
package |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-java/src/main/java/bridges/data_src_dependent/Song.java