From c8a735bcb1ba71e9501d18b3044aa30793ff97ee Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 24 Oct 2014 00:54:35 -0400 Subject: add LocalFileInfo.Id --- MediaBrowser.Api/Devices/DeviceService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Api/Devices') diff --git a/MediaBrowser.Api/Devices/DeviceService.cs b/MediaBrowser.Api/Devices/DeviceService.cs index bb8d8eda3f..b873c6a712 100644 --- a/MediaBrowser.Api/Devices/DeviceService.cs +++ b/MediaBrowser.Api/Devices/DeviceService.cs @@ -44,8 +44,8 @@ namespace MediaBrowser.Api.Devices [ApiMember(Name = "Name", Description = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] public string Name { get; set; } - [ApiMember(Name = "FullPath", Description = "FullPath", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] - public string FullPath { get; set; } + [ApiMember(Name = "Id", Description = "Id", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] + public string Id { get; set; } public Stream RequestStream { get; set; } } @@ -132,7 +132,7 @@ namespace MediaBrowser.Api.Devices { var deviceId = Request.QueryString["DeviceId"]; var album = Request.QueryString["Album"]; - var fullPath = Request.QueryString["FullPath"]; + var id = Request.QueryString["Id"]; var name = Request.QueryString["Name"]; var task = _deviceManager.AcceptCameraUpload(deviceId, request.RequestStream, new LocalFileInfo @@ -140,7 +140,7 @@ namespace MediaBrowser.Api.Devices MimeType = Request.ContentType, Album = album, Name = name, - FullPath = fullPath + Id = id }); Task.WaitAll(task); -- cgit v1.2.3