Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | List of all members
bridges.data_src_dependent.song.Song Class Reference

Detailed Description

A Song object, used along with the Songs data source.

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.

This object is generally not created by the user, to see how its created check out bridges::data_src_dependent::data_source::get_song()

For an example, check out https://bridgesuncc.github.io/tutorials/Data_Song_Lyrics.html

Author
Matthew Mcquaigue, Kalpathi Subramanian
Date
2018, 12/29/20

Public Member Functions

def __init__ (self, str artist="", str song="", str album="", str lyrics="", str release_date="")
 Constructor. More...
 
def artist (self)
 return artist of song More...
 
def artist (self, a)
 Set artist of song. More...
 
def song_title (self)
 return title of song More...
 
def song_title (self, s)
 Set the song title. More...
 
def album_title (self)
 return album title More...
 
def album_title (self, a)
 Set title of song. More...
 
def lyrics (self)
 return lyrics of song More...
 
def lyrics (self, l)
 Set artist of song. More...
 
def release_date (self)
 return release date of song More...
 
def release_date (self, r)
 Set release date of song. More...
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.data_src_dependent.song.Song.__init__ (   self,
str   artist = "",
str   song = "",
str   album = "",
str   lyrics = "",
str   release_date = "" 
)

Constructor.

Parameters
artistsong artist
songsong title
albumsong album
lyricslyrics of song
release_daterelease date of song

Member Function Documentation

◆ album_title() [1/2]

def bridges.data_src_dependent.song.Song.album_title (   self)

return album title

Returns
album title of song

◆ album_title() [2/2]

def bridges.data_src_dependent.song.Song.album_title (   self,
  a 
)

Set title of song.

Parameters
aalbum title to set

◆ artist() [1/2]

def bridges.data_src_dependent.song.Song.artist (   self)

return artist of song

Returns
artist name of song

◆ artist() [2/2]

def bridges.data_src_dependent.song.Song.artist (   self,
  a 
)

Set artist of song.

Parameters
aartist name to set

◆ lyrics() [1/2]

def bridges.data_src_dependent.song.Song.lyrics (   self)

return lyrics of song

Returns
lyrics of song

◆ lyrics() [2/2]

def bridges.data_src_dependent.song.Song.lyrics (   self,
  l 
)

Set artist of song.

Parameters
llyrics data to set

◆ release_date() [1/2]

def bridges.data_src_dependent.song.Song.release_date (   self)

return release date of song

Returns
release date of song

◆ release_date() [2/2]

def bridges.data_src_dependent.song.Song.release_date (   self,
  r 
)

Set release date of song.

Parameters
rrelease date to set

◆ song_title() [1/2]

def bridges.data_src_dependent.song.Song.song_title (   self)

return title of song

Returns
song title

◆ song_title() [2/2]

def bridges.data_src_dependent.song.Song.song_title (   self,
  s 
)

Set the song title.

Parameters
sartist name to set

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