C# Class AcoustID.Web.XmlResponseParser

Parses lookup and submit responses from the webservice (XML format).
The parser will parse lookup responses that were requested using the ["recording"] or ["recording", "releasegroup"] metadata parameters. If you need other metadata, you will have to implement your own parser.
Inheritance: IResponseParser
ファイルを表示 Open project: wo80/AcoustID.NET Class Usage Examples

Public Methods

Method Description
CanParse ( string text ) : bool
ParseLookupResponse ( string text ) : LookupResponse
ParseSubmitResponse ( string text ) : SubmitResponse

Parse the response of a submit request.

Private Methods

Method Description
ParseArtist ( System.Xml.Linq.XElement node ) : Artist
ParseLookupResult ( System.Xml.Linq.XElement el ) : LookupResult
ParseRecording ( System.Xml.Linq.XElement node ) : Recording
ParseRelease ( System.Xml.Linq.XElement node ) : Release
ParseReleaseGroup ( System.Xml.Linq.XElement node ) : ReleaseGroup
ParseSubmitResult ( System.Xml.Linq.XElement el ) : SubmitResult
TryParseChild ( System.Xml.Linq.XElement node, string name, int defaultValue, int &value ) : void
TryParseChild ( System.Xml.Linq.XElement node, string name, string &value ) : void

Method Details

CanParse() public method

public CanParse ( string text ) : bool
text string
return bool

ParseLookupResponse() public method

public ParseLookupResponse ( string text ) : LookupResponse
text string
return LookupResponse

ParseSubmitResponse() public method

Parse the response of a submit request.
public ParseSubmitResponse ( string text ) : SubmitResponse
text string The response string.
return SubmitResponse