mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-07-02 05:10:42 +00:00
25 lines
636 B
C#
25 lines
636 B
C#
using System.Text;
|
|
using System.Web;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace ZonyLrcTools.Cli.Infrastructure.Lyric.KuGou.JsonModel
|
|
{
|
|
public class SongSearchRequest
|
|
{
|
|
[JsonProperty("filter")]
|
|
public int Filter { get; }
|
|
|
|
[JsonProperty("platform")]
|
|
public string Platform { get; }
|
|
|
|
[JsonProperty("keyword")]
|
|
public string Keyword { get; }
|
|
|
|
public SongSearchRequest(string musicName, string artistName)
|
|
{
|
|
Filter = 2;
|
|
Platform = "WebFilter";
|
|
Keyword = HttpUtility.UrlEncode($"{musicName}+{artistName}", Encoding.UTF8);
|
|
}
|
|
}
|
|
} |