Created functionality to upload song data. #6

This commit is contained in:
amazing-username
2019-03-16 23:02:01 -04:00
parent 995a817108
commit a1c3ccb66f
4 changed files with 163 additions and 0 deletions
+11
View File
@@ -1,15 +1,26 @@
using System;
using Newtonsoft.Json;
namespace Icarus.Models
{
public class Song
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("title")]
public string Title { get; set; }
[JsonProperty("album")]
public string Album { 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("song_data")]
public byte[] SongFile { get; set; }
}
}