C# Class MusicPlayer.ExtentionMethods

Mostra file Open project: Silveryard/SmartHome

Public Methods

Method Description
AddSong ( this client, string song, string artist, string album, byte file ) : void
GetSongData ( this client, int songId ) : byte[]
GetSongs ( this client ) : MusicCollection
IndexesOf ( this haystack, string needle ) : IEnumerable

Method Details

AddSong() public static method

public static AddSong ( this client, string song, string artist, string album, byte file ) : void
client this
song string
artist string
album string
file byte
return void

GetSongData() public static method

public static GetSongData ( this client, int songId ) : byte[]
client this
songId int
return byte[]

GetSongs() public static method

public static GetSongs ( this client ) : MusicCollection
client this
return MusicCollection

IndexesOf() public static method

public static IndexesOf ( this haystack, string needle ) : IEnumerable
haystack this
needle string
return IEnumerable