C# Class Music.MusicDbConnector

Show file Open project: Silveryard/SmartHome

Public Methods

Method Description
AddSong ( string interpreter, string album, string song, byte data ) : int
GetAlbumName ( int album ) : string
GetAlbums ( int interpreter ) : List
GetInterpreterName ( int interpreter ) : string
GetInterpreters ( ) : List
GetSongFile ( int song ) : byte[]
GetSongName ( int song ) : string
GetSongs ( int album ) : List
Init ( MySqlConnection connection ) : void

Method Details

AddSong() public static method

public static AddSong ( string interpreter, string album, string song, byte data ) : int
interpreter string
album string
song string
data byte
return int

GetAlbumName() public static method

public static GetAlbumName ( int album ) : string
album int
return string

GetAlbums() public static method

public static GetAlbums ( int interpreter ) : List
interpreter int
return List

GetInterpreterName() public static method

public static GetInterpreterName ( int interpreter ) : string
interpreter int
return string

GetInterpreters() public static method

public static GetInterpreters ( ) : List
return List

GetSongFile() public static method

public static GetSongFile ( int song ) : byte[]
song int
return byte[]

GetSongName() public static method

public static GetSongName ( int song ) : string
song int
return string

GetSongs() public static method

public static GetSongs ( int album ) : List
album int
return List

Init() public static method

public static Init ( MySqlConnection connection ) : void
connection MySql.Data.MySqlClient.MySqlConnection
return void