diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-17 16:35:08 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-02-17 16:35:08 -0500 |
| commit | 1a9e2dfd83dbab2e9a5f277229c5994253fd8a9a (patch) | |
| tree | 157ac5c2ee2e226560d04d61fef79445b23c231d /MediaBrowser.Api/NotificationsService.cs | |
| parent | 4ebba2b2e87e33f083c095957a2294b6f8ae3828 (diff) | |
fixed themoviedb search returning no results
Diffstat (limited to 'MediaBrowser.Api/NotificationsService.cs')
| -rw-r--r-- | MediaBrowser.Api/NotificationsService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Api/NotificationsService.cs b/MediaBrowser.Api/NotificationsService.cs index 4f9ed729d..45a16347b 100644 --- a/MediaBrowser.Api/NotificationsService.cs +++ b/MediaBrowser.Api/NotificationsService.cs @@ -35,7 +35,7 @@ namespace MediaBrowser.Api [Route("/Notifications/{UserId}", "POST")] [Api(Description = "Adds a notifications")] - public class AddNotification : IReturn<Notification> + public class AddUserNotification : IReturn<Notification> { [ApiMember(Name = "Id", Description = "The Id of the new notification. If unspecified one will be provided.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] public Guid? Id { get; set; } @@ -61,7 +61,7 @@ namespace MediaBrowser.Api [ApiMember(Name = "Level", Description = "The notification level", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] public NotificationLevel Level { get; set; } } - + [Route("/Notifications/{UserId}/Read", "POST")] [Api(Description = "Marks notifications as read")] public class MarkRead : IReturnVoid @@ -93,7 +93,7 @@ namespace MediaBrowser.Api _notificationsRepo = notificationsRepo; } - public object Post(AddNotification request) + public object Post(AddUserNotification request) { var task = AddNotification(request); @@ -107,7 +107,7 @@ namespace MediaBrowser.Api return result; } - private async Task<Notification> AddNotification(AddNotification request) + private async Task<Notification> AddNotification(AddUserNotification request) { var notification = new Notification { |
