Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated track, as well as the get track controllers, includes the url
  • Loading branch information
Jeremy Mill committed Dec 10, 2015
1 parent d65bc2d commit 1d5d09b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Expand Up @@ -17,6 +17,10 @@ namespace TeamDBAwesome.Controllers
MySqlService dbService = new MySqlService();

List<Track> trackList = dbService.getOrderTracks(orderId);
foreach(Track track in trackList)
{
track.url = "http://a1310.phobos.apple.com/us/r1000/167/Music3/v4/00/23/38/0023383d-1616-fbe2-b3a3-7f2de268911b/mzaf_7209253486009554987.plus.aac.p.m4a";
}
string serialzed = JsonConvert.SerializeObject(trackList);

HttpResponseMessage message = new HttpResponseMessage(HttpStatusCode.OK);
Expand Down
Expand Up @@ -20,7 +20,8 @@ namespace TeamDBAwesome.Controllers
MySqlService sql = new MySqlService();

Track track = sql.GetTrack(TrackID);

track.url = "http://a1310.phobos.apple.com/us/r1000/167/Music3/v4/00/23/38/0023383d-1616-fbe2-b3a3-7f2de268911b/mzaf_7209253486009554987.plus.aac.p.m4a";

string serialized = JsonConvert.SerializeObject(track);

message.Content = new StringContent(serialized);
Expand Down
1 change: 1 addition & 0 deletions TeamDBAwesome/TeamDBAwesome/Models/Track.cs
Expand Up @@ -17,5 +17,6 @@ namespace TeamDBAwesome.Models
public int Bytes { get; set; }
public float UnitPrice { get; set; }
public string artist { get; set; }
public string url { get; set; }
}
}

0 comments on commit 1d5d09b

Please sign in to comment.