refactor: reformat source code.

This commit is contained in:
real-zony 2022-02-03 18:10:53 +08:00
parent 089559d058
commit ba3dd5f1bc
16 changed files with 37 additions and 56 deletions

View File

@ -1,5 +1,4 @@
using System; using System;
using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils; using McMaster.Extensions.CommandLineUtils;

View File

@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using McMaster.Extensions.CommandLineUtils; using McMaster.Extensions.CommandLineUtils;

View File

@ -4,17 +4,13 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.KuGou.JsonModel
{ {
public class GetLyricAccessKeyRequest public class GetLyricAccessKeyRequest
{ {
[JsonProperty("ver")] [JsonProperty("ver")] public int UnknownParameters1 { get; }
public int UnknownParameters1 { get; }
[JsonProperty("man")] [JsonProperty("man")] public string UnknownParameters2 { get; }
public string UnknownParameters2 { get; }
[JsonProperty("client")] [JsonProperty("client")] public string UnknownParameters3 { get; }
public string UnknownParameters3 { get; }
[JsonProperty("hash")] [JsonProperty("hash")] public string FileHash { get; }
public string FileHash { get; }
public GetLyricAccessKeyRequest(string fileHash) public GetLyricAccessKeyRequest(string fileHash)
{ {

View File

@ -5,22 +5,17 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.KuGou.JsonModel
{ {
public class GetLyricAccessKeyResponse public class GetLyricAccessKeyResponse
{ {
[JsonProperty("status")] [JsonProperty("status")] public int Status { get; set; }
public int Status { get; set; }
[JsonProperty("errcode")] [JsonProperty("errcode")] public int ErrorCode { get; set; }
public int ErrorCode { get; set; }
[JsonProperty("candidates")] [JsonProperty("candidates")] public List<GetLyricAccessKeyDataObject> AccessKeyDataObjects { get; set; }
public List<GetLyricAccessKeyDataObject> AccessKeyDataObjects { get; set; }
} }
public class GetLyricAccessKeyDataObject public class GetLyricAccessKeyDataObject
{ {
[JsonProperty("accesskey")] [JsonProperty("accesskey")] public string AccessKey { get; set; }
public string AccessKey { get; set; }
[JsonProperty("id")] [JsonProperty("id")] public string Id { get; set; }
public string Id { get; set; }
} }
} }

View File

@ -6,14 +6,11 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.KuGou.JsonModel
{ {
public class SongSearchRequest public class SongSearchRequest
{ {
[JsonProperty("filter")] [JsonProperty("filter")] public int Filter { get; }
public int Filter { get; }
[JsonProperty("platform")] [JsonProperty("platform")] public string Platform { get; }
public string Platform { get; }
[JsonProperty("keyword")] [JsonProperty("keyword")] public string Keyword { get; }
public string Keyword { get; }
public SongSearchRequest(string musicName, string artistName) public SongSearchRequest(string musicName, string artistName)
{ {

View File

@ -5,23 +5,18 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.KuGou.JsonModel
{ {
public class SongSearchResponse public class SongSearchResponse
{ {
[JsonProperty("status")] [JsonProperty("status")] public int Status { get; set; }
public int Status { get; set; }
[JsonProperty("data")] [JsonProperty("data")] public SongSearchResponseInnerData Data { get; set; }
public SongSearchResponseInnerData Data { get; set; }
[JsonProperty("error_code")] [JsonProperty("error_code")] public int ErrorCode { get; set; }
public int ErrorCode { get; set; }
[JsonProperty("error_msg")] [JsonProperty("error_msg")] public string ErrorMessage { get; set; }
public string ErrorMessage { get; set; }
} }
public class SongSearchResponseInnerData public class SongSearchResponseInnerData
{ {
[JsonProperty("lists")] [JsonProperty("lists")] public List<SongSearchResponseSongDetail> List { get; set; }
public List<SongSearchResponseSongDetail> List { get; set; }
} }
public class SongSearchResponseSongDetail public class SongSearchResponseSongDetail