Files
icarus/Models/Song.cs
T
2021-12-23 21:10:13 -05:00

62 lines
1.4 KiB
C#

using System;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;
namespace Icarus.Models
{
public class Song
{
[JsonProperty("song_id")]
public int SongID { get; set; }
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("album")]
public string AlbumTitle { get; set; }
[JsonProperty("artist")]
public string Artist { get; set; }
[JsonProperty("year")]
public int? Year { get; set; }
[JsonProperty("genre")]
public string Genre { get; set; }
[JsonProperty("duration")]
public int Duration { get; set; }
[JsonProperty("filename")]
public string Filename { get; set; }
[JsonProperty("song_path")]
public string SongPath { get; set; }
// [JsonIgnore]
// public Album Album { get; set; }
[JsonIgnore]
public int? AlbumID { get; set; }
/**
[JsonIgnore]
public Artist SongArtist { get; set; }
*/
[JsonIgnore]
public int? ArtistID { get; set; }
/**
[JsonIgnore]
public Genre SongGenre { get; set; }
*/
[JsonIgnore]
public int? GenreID { get; set; }
// [JsonIgnore]
// public Year SongYear { get; set; }
// [JsonIgnore]
// public int? YearId { get; set; }
/**
[JsonIgnore]
public CoverArt SongCoverArt { get; set; }
*/
[JsonIgnore]
public int? CoverArtID { get; set; }
[JsonProperty("date_created")]
public DateTime DateCreated { get; set; }
}
}