diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-11 21:46:02 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-11 21:46:02 -0400 |
| commit | 314a51dff3f070be75bcaf00be244977fdd3ceb5 (patch) | |
| tree | 9fd0588448932f9f829f314521f6f2ba340da9a6 /MediaBrowser.Api/Devices/DeviceService.cs | |
| parent | f3539686bd7ff6c748a0a9441086538081fa8903 (diff) | |
add more device options
Diffstat (limited to 'MediaBrowser.Api/Devices/DeviceService.cs')
| -rw-r--r-- | MediaBrowser.Api/Devices/DeviceService.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Devices/DeviceService.cs b/MediaBrowser.Api/Devices/DeviceService.cs index 55980bc00..87419e440 100644 --- a/MediaBrowser.Api/Devices/DeviceService.cs +++ b/MediaBrowser.Api/Devices/DeviceService.cs @@ -34,7 +34,7 @@ namespace MediaBrowser.Api.Devices [Route("/Devices/CameraUploads", "POST", Summary = "Uploads content")] public class PostCameraUpload : IRequiresRequestStream, IReturnVoid { - [ApiMember(Name = "Id", Description = "Device Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] + [ApiMember(Name = "DeviceId", Description = "Device Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] public string DeviceId { get; set; } [ApiMember(Name = "Album", Description = "Album", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] @@ -87,8 +87,7 @@ namespace MediaBrowser.Api.Devices public void Post(PostCameraUpload request) { - var deviceId = request.DeviceId; - + var deviceId = Request.QueryString["DeviceId"]; var album = Request.QueryString["Album"]; var fullPath = Request.QueryString["FullPath"]; var name = Request.QueryString["Name"]; |
