Add current songInfo to the Webserver and Site
This commit is contained in:
1 parent
8dfa321c8a
commit
197f003211
10 files changed
+196
-3
No files matched your search
@@ -84,6 +84,16 @@ namespace ClientServerLib
|
||||
Stream GetImgFile(String filename);
|
||||
|
||||
#endregion
|
||||
|
||||
#region songs
|
||||
|
||||
[OperationContract]
|
||||
[WebInvoke(Method = "GET",
|
||||
ResponseFormat = WebMessageFormat.Json,
|
||||
UriTemplate = "/getCurrentSong")]
|
||||
SongInfo getCurrentSong();
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
class CWebservice : ICWebservice
|
||||
@@ -135,7 +145,7 @@ namespace ClientServerLib
|
||||
#region photo
|
||||
|
||||
public bool sendPhoto(PhotoData photo)
|
||||
{
|
||||
{
|
||||
return CServer.SendPhoto(photo);
|
||||
}
|
||||
|
||||
@@ -236,5 +246,14 @@ namespace ClientServerLib
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region songs
|
||||
|
||||
public SongInfo getCurrentSong()
|
||||
{
|
||||
return CServer.GetCurrentSong();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user