This repository was archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSong.cs
More file actions
54 lines (41 loc) · 1.27 KB
/
Song.cs
File metadata and controls
54 lines (41 loc) · 1.27 KB
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
using AniAPI.NET.Enums;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AniAPI.NET.Models
{
public class Song
{
[JsonProperty("id")]
public long Id { get; set; }
[JsonProperty("anime_id")]
public long AnimeId { get; set; }
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("artist")]
public string Artist { get; set; }
[JsonProperty("album")]
public string Album { get; set; }
[JsonProperty("year")]
public int Year { get; set; }
[JsonProperty("season")]
public AnimeSeasonEnum Season { get; set; }
[JsonProperty("duration")]
public int Duration { get; set; }
[JsonProperty("preview_url")]
public string PreviewUrl { get; set; }
[JsonProperty("open_spotify_url")]
public string OpenSpotifyUrl { get; set; }
[JsonProperty("local_spotify_url")]
public string LocalSpotifyUrl { get; set; }
[JsonProperty("type")]
public SongTypeEnum SongType { get; set; }
public override string ToString()
{
return $"{Title} - {Artist}";
}
}
}