Serialize playlists
This commit is contained in:
1 parent
206a6cda35
commit
1698c1b027
10 files changed
+76
-96
No files matched your search
@@ -295,12 +295,12 @@ namespace ServerLib
|
||||
#endregion
|
||||
|
||||
#region playlist
|
||||
public SPlaylistInfo[] GetPlaylists()
|
||||
public SPlaylistData[] GetPlaylists()
|
||||
{
|
||||
return CServer.GetPlaylists();
|
||||
}
|
||||
|
||||
public SPlaylistInfo GetPlaylist(int playlistId)
|
||||
public SPlaylistData GetPlaylist(int playlistId)
|
||||
{
|
||||
return CServer.GetPlaylist(playlistId);
|
||||
}
|
||||
|
||||
@@ -128,9 +128,9 @@ namespace ServerLib
|
||||
#endregion
|
||||
|
||||
#region playlists
|
||||
public delegate SPlaylistInfo[] GetPlaylistsDelegate();
|
||||
public delegate SPlaylistData[] GetPlaylistsDelegate();
|
||||
|
||||
public delegate SPlaylistInfo GetPlaylistDelegate(int playlistId);
|
||||
public delegate SPlaylistData GetPlaylistDelegate(int playlistId);
|
||||
|
||||
public delegate void AddSongToPlaylistDelegate(int songId, int playlistId, bool allowDuplicates);
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace ServerLib
|
||||
}
|
||||
|
||||
[DataContract]
|
||||
public struct SPlaylistInfo
|
||||
public struct SPlaylistData
|
||||
{
|
||||
[DataMember] public int PlaylistId;
|
||||
[DataMember] public string PlaylistName;
|
||||
|
||||
@@ -128,12 +128,12 @@ namespace ServerLib
|
||||
[OperationContract, WebInvoke(Method = "GET",
|
||||
ResponseFormat = WebMessageFormat.Json,
|
||||
UriTemplate = "/getPlaylists")]
|
||||
SPlaylistInfo[] GetPlaylists();
|
||||
SPlaylistData[] GetPlaylists();
|
||||
|
||||
[OperationContract, WebInvoke(Method = "GET",
|
||||
ResponseFormat = WebMessageFormat.Json,
|
||||
UriTemplate = "/getPlaylist?id={playlistId}")]
|
||||
SPlaylistInfo GetPlaylist(int playlistId);
|
||||
SPlaylistData GetPlaylist(int playlistId);
|
||||
|
||||
[OperationContract, WebInvoke(Method = "GET",
|
||||
ResponseFormat = WebMessageFormat.Json,
|
||||
|
||||
Reference in new issue
Block a user