C# Class SoundFingerprinting.ModelService

Inheritance: IModelService
Mostra file Open project: AddictedCS/soundfingerprinting

Public Methods

Method Description
ContainsTrack ( string isrc, string artist, string title ) : bool
DeleteTrack ( IModelReference trackReference ) : int
InsertHashDataForTrack ( IEnumerable hashes, IModelReference trackReference ) : void
InsertTrack ( SoundFingerprinting.Data.TrackData track ) : IModelReference
ReadAllTracks ( ) : IList
ReadHashedFingerprintsByTrack ( IModelReference trackReference ) : IList
ReadSubFingerprints ( long hashBins, QueryConfiguration config ) : IList
ReadSubFingerprints ( IEnumerable hashes, QueryConfiguration config ) : ISet
ReadTrackByArtistAndTitleName ( string artist, string title ) : IList
ReadTrackByISRC ( string isrc ) : SoundFingerprinting.Data.TrackData
ReadTrackByReference ( IModelReference trackReference ) : SoundFingerprinting.Data.TrackData

Protected Methods

Method Description
ModelService ( ITrackDao trackDao, ISubFingerprintDao subFingerprintDao ) : System.Collections.Generic

Method Details

ContainsTrack() public method

public ContainsTrack ( string isrc, string artist, string title ) : bool
isrc string
artist string
title string
return bool

DeleteTrack() public method

public DeleteTrack ( IModelReference trackReference ) : int
trackReference IModelReference
return int

InsertHashDataForTrack() public method

public InsertHashDataForTrack ( IEnumerable hashes, IModelReference trackReference ) : void
hashes IEnumerable
trackReference IModelReference
return void

InsertTrack() public method

public InsertTrack ( SoundFingerprinting.Data.TrackData track ) : IModelReference
track SoundFingerprinting.Data.TrackData
return IModelReference

ModelService() protected method

protected ModelService ( ITrackDao trackDao, ISubFingerprintDao subFingerprintDao ) : System.Collections.Generic
trackDao ITrackDao
subFingerprintDao ISubFingerprintDao
return System.Collections.Generic

ReadAllTracks() public method

public ReadAllTracks ( ) : IList
return IList

ReadHashedFingerprintsByTrack() public method

public ReadHashedFingerprintsByTrack ( IModelReference trackReference ) : IList
trackReference IModelReference
return IList

ReadSubFingerprints() public method

public ReadSubFingerprints ( long hashBins, QueryConfiguration config ) : IList
hashBins long
config QueryConfiguration
return IList

ReadSubFingerprints() public method

public ReadSubFingerprints ( IEnumerable hashes, QueryConfiguration config ) : ISet
hashes IEnumerable
config QueryConfiguration
return ISet

ReadTrackByArtistAndTitleName() public method

public ReadTrackByArtistAndTitleName ( string artist, string title ) : IList
artist string
title string
return IList

ReadTrackByISRC() public method

public ReadTrackByISRC ( string isrc ) : SoundFingerprinting.Data.TrackData
isrc string
return SoundFingerprinting.Data.TrackData

ReadTrackByReference() public method

public ReadTrackByReference ( IModelReference trackReference ) : SoundFingerprinting.Data.TrackData
trackReference IModelReference
return SoundFingerprinting.Data.TrackData