Skip to content

Commit

Permalink
Split Album to multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
geloczi committed Dec 19, 2021
1 parent fde0f93 commit 34673e2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion SynologyDotNet.AudioStation/AudioStationClient.Album.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<ApiListRessponse<AlbumList>> ListAlbumsAsync(int limit, int of
args.Add(GetLibraryArg());
if (!string.IsNullOrWhiteSpace(artist))
args.Add(("artist", artist));

return await Client.QueryListAsync<ApiListRessponse<AlbumList>>(SYNO_AudioStation_Album, "list", limit, offset, args.ToArray());
}

Expand Down
18 changes: 0 additions & 18 deletions SynologyDotNet.AudioStation/Model/Album.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@

namespace SynologyDotNet.AudioStation.Model
{
public enum AlbumQueryParameter
{
name,
artist,
album_artist,
composer,
sort_by,
sort_direction
}

public static class AlbumSortBy
{
public const string Name = "name";
public const string AlbumAtist = "album_artist";
public const string Year = "year";
public const string Time = "time";
}

public class Album
{
[JsonProperty("album_artist")]
Expand Down
12 changes: 12 additions & 0 deletions SynologyDotNet.AudioStation/Model/AlbumQueryParameter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace SynologyDotNet.AudioStation.Model
{
public enum AlbumQueryParameter
{
name,
artist,
album_artist,
composer,
sort_by,
sort_direction
}
}
10 changes: 10 additions & 0 deletions SynologyDotNet.AudioStation/Model/AlbumSortBy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace SynologyDotNet.AudioStation.Model
{
public static class AlbumSortBy
{
public const string Name = "name";
public const string AlbumAtist = "album_artist";
public const string Year = "year";
public const string Time = "time";
}
}

0 comments on commit 34673e2

Please sign in to comment.