From 17bf59dfe3bad4a1341177050c4187bbd3215800 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 10 Feb 2014 23:55:01 -0500 Subject: added toggles for metadata settings --- MediaBrowser.Api/Library/LibraryStructureService.cs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Api/Library/LibraryStructureService.cs') diff --git a/MediaBrowser.Api/Library/LibraryStructureService.cs b/MediaBrowser.Api/Library/LibraryStructureService.cs index f08d79c0d..ed086398f 100644 --- a/MediaBrowser.Api/Library/LibraryStructureService.cs +++ b/MediaBrowser.Api/Library/LibraryStructureService.cs @@ -167,15 +167,32 @@ namespace MediaBrowser.Api.Library public bool RefreshLibrary { get; set; } } - [Route("/Library/Changes/Path", "POST")] + [Route("/Library/Changes/New", "POST")] public class ReportChangedPath : IReturnVoid { /// /// Gets or sets the name. /// /// The name. - [ApiMember(Name = "Path", Description = "The path that was changed.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] + [ApiMember(Name = "Path", Description = "The path that was changed.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")] public string Path { get; set; } + + [ApiMember(Name = "ImageUrl", Description = "Optional thumbnail image url of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] + public string ImageUrl { get; set; } + } + + [Route("/Library/Episodes/New", "POST")] + public class ReportNewEpisode : IReturnVoid + { + /// + /// Gets or sets the name. + /// + /// The name. + [ApiMember(Name = "TvdbId", Description = "The tvdb id of the new episode.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")] + public string TvdbId { get; set; } + + [ApiMember(Name = "ImageUrl", Description = "Optional thumbnail image url of the content.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] + public string ImageUrl { get; set; } } /// -- cgit v1.2.3