libmusicbrainz3
3.0.3
|
A filter for the release collection. More...
Public Member Functions | |
ReleaseFilter & | title (const std::string &value) |
ReleaseFilter & | discId (const std::string &value) |
ReleaseFilter & | releaseType (const std::string &value) |
ReleaseFilter & | artistName (const std::string &value) |
ReleaseFilter & | artistId (const std::string &value) |
ReleaseFilter & | limit (const int value) |
ReleaseFilter & | query (const std::string &query) |
ParameterList | createParameters () const |
Create a map of query parameters. |
A filter for the release collection.
If discId or artistId are set, only releases matching those IDs are returned. The releaseType parameter allows to limit the types of the releases returned. You can set it to Release::TYPE_ALBUM and Release::TYPE_OFFICIAL, for example, to only get officially released albums. Note that those values are connected using the AND operator. MusicBrainz' support is currently very limited, so Release::TYPE_LIVE and Release::TYPE_COMPILATION exclude each other (see the documentation on release attributes ) for more information and all valid values).
If both the artistName and the artistId parameter are given, the server will ignore artistName.
ReleaseFilter(releaseTypes=(Release.TYPE_ALBUM, Release.TYPE_OFFICIAL))
ReleaseFilter().releaseType(Release::TYPE_ALBUM).releaseType(Release::TYPE_OFFICIAL)
ReleaseFilter& MusicBrainz::ReleaseFilter::artistId | ( | const std::string & | value | ) |
ReleaseFilter& MusicBrainz::ReleaseFilter::artistName | ( | const std::string & | value | ) |
ParameterList MusicBrainz::ReleaseFilter::createParameters | ( | ) | const [virtual] |
Create a map of query parameters.
Implements MusicBrainz::IFilter.
ReleaseFilter& MusicBrainz::ReleaseFilter::discId | ( | const std::string & | value | ) |
ReleaseFilter& MusicBrainz::ReleaseFilter::limit | ( | const int | value | ) |
ReleaseFilter& MusicBrainz::ReleaseFilter::query | ( | const std::string & | query | ) |
ReleaseFilter& MusicBrainz::ReleaseFilter::releaseType | ( | const std::string & | value | ) |
ReleaseFilter& MusicBrainz::ReleaseFilter::title | ( | const std::string & | value | ) |