-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQQMusicApi.cs
778 lines (548 loc) · 19.4 KB
/
QQMusicApi.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
using NeteaseCloudMusicApi;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text.Json.Serialization;
namespace QQMusicApi
{
public class RootObject
{
[JsonPropertyName("result")]
public int Result { get; set; }
[JsonPropertyName("data")]
public Data Data { get; set; }
}
public class Data
{
[JsonPropertyName("disstid")]
public string Disstid { get; set; }
[JsonPropertyName("dir_show")]
public int Dir_Show { get; set; }
[JsonPropertyName("owndir")]
public int Owndir { get; set; }
[JsonPropertyName("dirid")]
public int Dirid { get; set; }
[JsonPropertyName("coveradurl")]
public string Coveradurl { get; set; }
[JsonPropertyName("dissid")]
public int Dissid { get; set; }
[JsonPropertyName("login")]
public string Login { get; set; }
[JsonPropertyName("uin")]
public string Uin { get; set; }
[JsonPropertyName("encrypt_uin")]
public string Encrypt_Uin { get; set; }
[JsonPropertyName("dissname")]
public string Dissname { get; set; }
[JsonPropertyName("logo")]
public string Logo { get; set; }
[JsonPropertyName("pic_mid")]
public string Pic_Mid { get; set; }
[JsonPropertyName("album_pic_mid")]
public string Album_Pic_Mid { get; set; }
[JsonPropertyName("pic_dpi")]
public int Pic_Dpi { get; set; }
[JsonPropertyName("isAd")]
public int IsAd { get; set; }
[JsonPropertyName("desc")]
public string Desc { get; set; }
[JsonPropertyName("ctime")]
public long Ctime { get; set; }
[JsonPropertyName("mtime")]
public long Mtime { get; set; }
[JsonPropertyName("headurl")]
public string Headurl { get; set; }
[JsonPropertyName("ifpicurl")]
public string Ifpicurl { get; set; }
[JsonPropertyName("nick")]
public string Nick { get; set; }
[JsonPropertyName("nickname")]
public string Nickname { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("singerid")]
public int Singerid { get; set; }
[JsonPropertyName("singermid")]
public string Singermid { get; set; }
[JsonPropertyName("isvip")]
public int Isvip { get; set; }
[JsonPropertyName("isdj")]
public int Isdj { get; set; }
[JsonPropertyName("tags")]
public TAGS[] Tags { get; set; }
[JsonPropertyName("songnum")]
public int Songnum { get; set; }
[JsonPropertyName("songids")]
public string Songids { get; set; }
[JsonPropertyName("songtypes")]
public string Songtypes { get; set; }
[JsonPropertyName("disstype")]
public int Disstype { get; set; }
[JsonPropertyName("dir_pic_url2")]
public string Dir_Pic_Url2 { get; set; }
[JsonPropertyName("song_update_time")]
public long Song_Update_Time { get; set; }
[JsonPropertyName("song_update_num")]
public int Song_Update_Num { get; set; }
[JsonPropertyName("total_song_num")]
public int Total_Song_Num { get; set; }
[JsonPropertyName("song_begin")]
public int Song_Begin { get; set; }
[JsonPropertyName("cur_song_num")]
public int Cur_Song_Num { get; set; }
[JsonPropertyName("songlist")]
public Song[] Songlist { get; set; }
[JsonPropertyName("visitnum")]
public int Visitnum { get; set; }
[JsonPropertyName("cmtnum")]
public int Cmtnum { get; set; }
[JsonPropertyName("buynum")]
public int Buynum { get; set; }
[JsonPropertyName("scoreavage")]
public string Scoreavage { get; set; }
[JsonPropertyName("scoreusercount")]
public int Scoreusercount { get; set; }
}
public class TAGS
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("pid")]
public int Pid { get; set; }
}
public class Song
{
[JsonPropertyName("albumdesc")]
public string Albumdesc { get; set; }
[JsonPropertyName("albumid")]
public int Albumid { get; set; }
[JsonPropertyName("albummid")]
public string Albummid { get; set; }
[JsonPropertyName("albumname")]
public string Albumname { get; set; }
[JsonPropertyName("alertid")]
public int Alertid { get; set; }
[JsonPropertyName("belongCD")]
public int BelongCD { get; set; }
[JsonPropertyName("cdIdx")]
public int CdIdx { get; set; }
[JsonPropertyName("interval")]
public int Interval { get; set; }
[JsonPropertyName("isonly")]
public int Isonly { get; set; }
[JsonPropertyName("label")]
public string Label { get; set; }
[JsonPropertyName("msgid")]
public int Msgid { get; set; }
[JsonPropertyName("pay")]
public Pay Pay { get; set; }
[JsonPropertyName("preview")]
public Preview Preview { get; set; }
[JsonPropertyName("rate")]
public int Rate { get; set; }
[JsonPropertyName("singer")]
public Singer[] Singer { get; set; }
[JsonPropertyName("size128")]
public int Size128 { get; set; }
[JsonPropertyName("size320")]
public int Size320 { get; set; }
[JsonPropertyName("size5_1")]
public int Size5_1 { get; set; }
[JsonPropertyName("sizeape")]
public int Sizeape { get; set; }
[JsonPropertyName("sizeflac")]
public int Sizeflac { get; set; }
[JsonPropertyName("sizeogg")]
public int Sizeogg { get; set; }
[JsonPropertyName("songid")]
public int Songid { get; set; }
[JsonPropertyName("songmid")]
public string Songmid { get; set; }
[JsonPropertyName("songname")]
public string Songname { get; set; }
[JsonPropertyName("songorig")]
public string Songorig { get; set; }
[JsonPropertyName("songtype")]
public int Songtype { get; set; }
[JsonPropertyName("strMediaMid")]
public string StrMediaMid { get; set; }
[JsonPropertyName("stream")]
public int Stream { get; set; }
[JsonPropertyName("switch")]
public int Switch { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("vid")]
public string Vid { get; set; }
}
public class Pay
{
[JsonPropertyName("payalbum")]
public int Payalbum { get; set; }
[JsonPropertyName("payalbumprice")]
public int Payalbumprice { get; set; }
[JsonPropertyName("paydownload")]
public int Paydownload { get; set; }
[JsonPropertyName("payinfo")]
public int Payinfo { get; set; }
[JsonPropertyName("payplay")]
public int Payplay { get; set; }
[JsonPropertyName("paytrackmouth")]
public int Paytrackmouth { get; set; }
[JsonPropertyName("paytrackprice")]
public int Paytrackprice { get; set; }
[JsonPropertyName("timefree")]
public int Timefree { get; set; }
}
public class Preview
{
[JsonPropertyName("trybegin")]
public int Trybegin { get; set; }
[JsonPropertyName("tryend")]
public int Tryend { get; set; }
[JsonPropertyName("trysize")]
public int Trysize { get; set; }
}
public class Singer
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
}
public class CookieStatus
{
[JsonPropertyName("result")]
public int Status { get; set; }
[JsonPropertyName("message")]
public string Message { get; set; }
}
public class Root
{
[JsonPropertyName("result")]
public int Result { get; set; }
[JsonPropertyName("data")]
public Data2 Data2 { get; set; }
}
public class Data2
{
[JsonPropertyName("info")]
public Info Info { get; set; }
[JsonPropertyName("extras")]
public Extras Extras { get; set; }
[JsonPropertyName("track_info")]
public TrackInfo TrackInfo { get; set; }
}
public class Info
{
[JsonPropertyName("company")]
public Category Company { get; set; }
[JsonPropertyName("genre")]
public Category Genre { get; set; }
[JsonPropertyName("lan")]
public Category Lan { get; set; }
[JsonPropertyName("pub_time")]
public Category PubTime { get; set; }
}
public class Category
{
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("content")]
public List<Content> Content { get; set; }
[JsonPropertyName("pos")]
public int Pos { get; set; }
[JsonPropertyName("more")]
public int More { get; set; }
[JsonPropertyName("selected")]
public string Selected { get; set; }
[JsonPropertyName("use_platform")]
public int UsePlatform { get; set; }
}
public class Content
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("value")]
public string Value { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("show_type")]
public int ShowType { get; set; }
[JsonPropertyName("is_parent")]
public int IsParent { get; set; }
[JsonPropertyName("picurl")]
public string PicUrl { get; set; }
[JsonPropertyName("read_cnt")]
public int ReadCnt { get; set; }
[JsonPropertyName("author")]
public string Author { get; set; }
[JsonPropertyName("jumpurl")]
public string JumpUrl { get; set; }
[JsonPropertyName("ori_picurl")]
public string OriPicUrl { get; set; }
}
public class Extras
{
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("transname")]
public string TransName { get; set; }
[JsonPropertyName("subtitle")]
public string Subtitle { get; set; }
[JsonPropertyName("from")]
public string From { get; set; }
[JsonPropertyName("wikiurl")]
public string WikiUrl { get; set; }
}
public class TrackInfo
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("subtitle")]
public string Subtitle { get; set; }
[JsonPropertyName("singer")]
public List<Singer2> Singer2 { get; set; }
[JsonPropertyName("album")]
public Album Album { get; set; }
[JsonPropertyName("mv")]
public Mv Mv { get; set; }
[JsonPropertyName("interval")]
public int Interval { get; set; }
[JsonPropertyName("isonly")]
public int Isonly { get; set; }
[JsonPropertyName("language")]
public int Language { get; set; }
[JsonPropertyName("genre")]
public int Genre { get; set; }
[JsonPropertyName("index_cd")]
public int IndexCd { get; set; }
[JsonPropertyName("index_album")]
public int IndexAlbum { get; set; }
[JsonPropertyName("time_public")]
public string TimePublic { get; set; }
[JsonPropertyName("status")]
public int Status { get; set; }
[JsonPropertyName("fnote")]
public int Fnote { get; set; }
[JsonPropertyName("file")]
public File2 File2 { get; set; }
[JsonPropertyName("pay")]
public Pay2 Pay2 { get; set; }
[JsonPropertyName("action")]
public Action Action { get; set; }
[JsonPropertyName("ksong")]
public Ksong Ksong { get; set; }
[JsonPropertyName("volume")]
public Volume Volume { get; set; }
[JsonPropertyName("label")]
public string Label { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("bpm")]
public int Bpm { get; set; }
[JsonPropertyName("version")]
public int Version { get; set; }
[JsonPropertyName("trace")]
public string Trace { get; set; }
[JsonPropertyName("data_type")]
public int DataType { get; set; }
[JsonPropertyName("modify_stamp")]
public int ModifyStamp { get; set; }
[JsonPropertyName("pingpong")]
public string Pingpong { get; set; }
[JsonPropertyName("ppurl")]
public string PpUrl { get; set; }
[JsonPropertyName("tid")]
public int Tid { get; set; }
[JsonPropertyName("ov")]
public int Ov { get; set; }
[JsonPropertyName("sa")]
public int Sa { get; set; }
[JsonPropertyName("es")]
public string Es { get; set; }
[JsonPropertyName("vs")]
public List<string> Vs { get; set; }
[JsonPropertyName("vi")]
public List<int> Vi { get; set; }
[JsonPropertyName("ktag")]
public string Ktag { get; set; }
[JsonPropertyName("vf")]
public List<double> Vf { get; set; }
}
public class Singer2
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("type")]
public int Type { get; set; }
[JsonPropertyName("uin")]
public int Uin { get; set; }
}
public class Album
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("subtitle")]
public string Subtitle { get; set; }
[JsonPropertyName("time_public")]
public string TimePublic { get; set; }
[JsonPropertyName("pmid")]
public string Pmid { get; set; }
}
public class Mv
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("vid")]
public string Vid { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("vt")]
public int Vt { get; set; }
}
public class File2
{
[JsonPropertyName("media_mid")]
public string MediaMid { get; set; }
[JsonPropertyName("size_24aac")]
public int Size24aac { get; set; }
[JsonPropertyName("size_48aac")]
public int Size48aac { get; set; }
[JsonPropertyName("size_96aac")]
public int Size96aac { get; set; }
[JsonPropertyName("size_192ogg")]
public int Size192ogg { get; set; }
[JsonPropertyName("size_192aac")]
public int Size192aac { get; set; }
[JsonPropertyName("size_128mp3")]
public int Size128mp3 { get; set; }
[JsonPropertyName("size_320mp3")]
public int Size320mp3 { get; set; }
[JsonPropertyName("size_ape")]
public int SizeApe { get; set; }
[JsonPropertyName("size_flac")]
public int SizeFlac { get; set; }
[JsonPropertyName("size_dts")]
public int SizeDts { get; set; }
[JsonPropertyName("size_try")]
public int SizeTry { get; set; }
[JsonPropertyName("try_begin")]
public int TryBegin { get; set; }
[JsonPropertyName("try_end")]
public int TryEnd { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("size_hires")]
public int SizeHires { get; set; }
[JsonPropertyName("hires_sample")]
public int HiresSample { get; set; }
[JsonPropertyName("hires_bitdepth")]
public int HiresBitdepth { get; set; }
[JsonPropertyName("b_30s")]
public int B30s { get; set; }
[JsonPropertyName("e_30s")]
public int E30s { get; set; }
[JsonPropertyName("size_96ogg")]
public int Size96ogg { get; set; }
[JsonPropertyName("size_360ra")]
public List<int> Size360ra { get; set; }
[JsonPropertyName("size_dolby")]
public int SizeDolby { get; set; }
[JsonPropertyName("size_new")]
public List<int> SizeNew { get; set; }
}
public class Pay2
{
[JsonPropertyName("pay_month")]
public int PayMonth { get; set; }
[JsonPropertyName("price_track")]
public int PriceTrack { get; set; }
[JsonPropertyName("price_album")]
public int PriceAlbum { get; set; }
[JsonPropertyName("pay_play")]
public int PayPlay { get; set; }
[JsonPropertyName("pay_down")]
public int PayDown { get; set; }
[JsonPropertyName("pay_status")]
public int PayStatus { get; set; }
[JsonPropertyName("time_free")]
public int TimeFree { get; set; }
}
public class Action
{
[JsonPropertyName("switch")]
public int Switch { get; set; }
[JsonPropertyName("msgid")]
public int Msgid { get; set; }
[JsonPropertyName("alert")]
public int Alert { get; set; }
[JsonPropertyName("icons")]
public int Icons { get; set; }
[JsonPropertyName("msgshare")]
public int MsgShare { get; set; }
[JsonPropertyName("msgfav")]
public int MsgFav { get; set; }
[JsonPropertyName("msgdown")]
public int MsgDown { get; set; }
[JsonPropertyName("msgpay")]
public int MsgPay { get; set; }
[JsonPropertyName("switch2")]
public int Switch2 { get; set; }
[JsonPropertyName("icon2")]
public int Icon2 { get; set; }
}
public class Ksong
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("mid")]
public string Mid { get; set; }
}
public class Volume
{
[JsonPropertyName("gain")]
public double Gain { get; set; }
[JsonPropertyName("peak")]
public double Peak { get; set; }
[JsonPropertyName("lra")]
public double Lra { get; set; }
}
public class TrackUrlResponse
{
[JsonPropertyName("data")]
public string Data { get; set; }
[JsonPropertyName("result")]
public int Result { get; set; }
}
}