Implemented functionality to upload song
This commit is contained in:
@@ -20,7 +20,5 @@ namespace Icarus.Models
|
||||
public string Genre { get; set; }
|
||||
[JsonProperty("duration")]
|
||||
public int Duration { get; set; }
|
||||
[JsonProperty("song_data")]
|
||||
public byte[] SongFile { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace Icarus.Models
|
||||
{
|
||||
public class SongData
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public byte[] Data { get; set; }
|
||||
public int SongId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user