本文整理汇总了C#中QueryInfo.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# QueryInfo.Equals方法的具体用法?C# QueryInfo.Equals怎么用?C# QueryInfo.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QueryInfo
的用法示例。
在下文中一共展示了QueryInfo.Equals方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetQuery
/// <summary>
/// The query to execute.
/// </summary>
public override string GetQuery(QueryInfo query)
{
if (query.Equals (last_query, QueryField.Artist))
return null;
string url = "http://ws.audioscrobbler.com/1.0/artist/{0}/toptracks.xml";
return ParseQuery (url, query.Artist);
}
示例2: GetQuery
/// <summary>
/// The query to execute.
/// </summary>
public override string GetQuery(QueryInfo query)
{
if (query.Equals (last_query, QueryField.Username))
return null;
string url = "http://ws.audioscrobbler.com/1.0/user/{0}/topartists.xml";
return ParseQuery (url, query.Username);
}
示例3: GetQuery
/// <summary>
/// The query to execute.
/// </summary>
public override string GetQuery(QueryInfo query)
{
if (query.Equals (last_query, QueryField.Artist, QueryField.Album))
return null;
string url = "http://ws.audioscrobbler.com/1.0/album/{0}/{1}/info.xml";
return ParseQuery (url, query.Artist, query.Album);
}
示例4: GetQuery
/// <summary>
/// The query to execute.
/// </summary>
public override string GetQuery(QueryInfo query)
{
if (query.Equals (last_query, QueryField.Artist, QueryField.Title))
return null;
string url = "http://lyricwiki.org/api.php?artist={0}&song={1}&fmt=xml";
return ParseQuery (url, query.Artist, query.Title);
}