public void SetUserRole(int profileId, int userRole) { if (_CheckRight(EUserRights.EditAllProfiles)) { CVocaluxeServer.DoTaskWithoutReturn(CVocaluxeServer.SetUserRole, profileId, userRole); } }
public void MoveSongInPlaylist(int newPosition, int playlistId, int songId) { if (!_CheckRight(EUserRights.ReorderPlaylists)) { return; } try { CVocaluxeServer.DoTaskWithoutReturn(CVocaluxeServer.MoveSongInPlaylist, newPosition, playlistId, songId); } catch (ArgumentException e) { if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.Forbidden; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } } }
public void RemovePlaylist(int playlistId) { if (!_CheckRight(EUserRights.DeletePlaylists)) { return; } try { CVocaluxeServer.DoTaskWithoutReturn(CVocaluxeServer.RemovePlaylist, playlistId); } catch (ArgumentException e) { if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.Forbidden; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } } }
public void AddSongToPlaylist(int songId, int playlistId, bool allowDuplicates) { if (!_CheckRight(EUserRights.AddSongToPlaylist)) { return; } try { CVocaluxeServer.DoTaskWithoutReturn(CVocaluxeServer.AddSongToPlaylist, songId, playlistId, allowDuplicates); } catch (ArgumentException e) { if (WebOperationContext.Current != null) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.Forbidden; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } } }