mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-17 07:13:09 +01:00
Add rank attribute to track
This commit is contained in:
parent
9d93743c2b
commit
8f4b84dca1
@ -30,6 +30,7 @@ public class LastTrack : ILastFmObject
|
|||||||
public DateTime? TimePlayed { get; set; }
|
public DateTime? TimePlayed { get; set; }
|
||||||
public bool? IsLoved { get; set; }
|
public bool? IsLoved { get; set; }
|
||||||
public bool? IsNowPlaying { get; set; }
|
public bool? IsNowPlaying { get; set; }
|
||||||
|
public int Rank { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -92,6 +93,7 @@ internal static LastTrack ParseJToken(JToken token)
|
|||||||
if (attrToken != null && attrToken.HasValues)
|
if (attrToken != null && attrToken.HasValues)
|
||||||
{
|
{
|
||||||
t.IsNowPlaying = attrToken.Value<bool>("nowplaying");
|
t.IsNowPlaying = attrToken.Value<bool>("nowplaying");
|
||||||
|
t.Rank = attrToken.Value<int>("rank");
|
||||||
}
|
}
|
||||||
|
|
||||||
// api returns milliseconds when track.getInfo is called directly
|
// api returns milliseconds when track.getInfo is called directly
|
||||||
|
Loading…
Reference in New Issue
Block a user