add cover art member to song class
This commit is contained in:
parent
dfe4a24c5b
commit
a5091d42e0
1 changed files with 5 additions and 0 deletions
|
@ -64,6 +64,7 @@ public class Subsonic.Song : Object {
|
|||
public int64 duration { get; private set; }
|
||||
public int64 play_count { get; private set; }
|
||||
public string? genre { get; private set; }
|
||||
public string cover_art { get; private set; }
|
||||
|
||||
public Song (Json.Reader reader) {
|
||||
reader.read_member ("id");
|
||||
|
@ -101,6 +102,10 @@ public class Subsonic.Song : Object {
|
|||
reader.read_member ("genre");
|
||||
this.genre = reader.get_string_value ();
|
||||
reader.end_member ();
|
||||
|
||||
reader.read_member ("coverArt");
|
||||
this.cover_art = reader.get_string_value ();
|
||||
reader.end_member ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue