Skip to content
Permalink
Browse files

updated track, as well as the get track controllers, includes the url

  • Loading branch information
Jeremy Mill
Jeremy Mill committed Dec 10, 2015
1 parent d65bc2d commit 1d5d09bae4770c82ad4a21244ae9d8c631cdeae5
@@ -17,6 +17,10 @@ public HttpResponseMessage Get(int orderId)
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);
@@ -20,7 +20,8 @@ public HttpResponseMessage Get(int TrackID)
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);
@@ -17,5 +17,6 @@ public class Track
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.
You can’t perform that action at this time.