rename cache tag param

This commit is contained in:
Luke Pulverenti 2014-02-27 23:51:32 -05:00
parent 83619ef25a
commit c177de9407

View File

@ -41,8 +41,8 @@ namespace MediaBrowser.Api
[ApiMember(Name = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")] [ApiMember(Name = "Name", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "GET")]
public string Name { get; set; } public string Name { get; set; }
[ApiMember(Name = "Tag", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")] [ApiMember(Name = "CacheTag", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
public string Tag { get; set; } public string CacheTag { get; set; }
} }
[Route("/Themes", "POST")] [Route("/Themes", "POST")]
@ -89,7 +89,7 @@ namespace MediaBrowser.Api
TimeSpan? cacheDuration = null; TimeSpan? cacheDuration = null;
if (!string.IsNullOrEmpty(request.Tag) && cacheGuid == new Guid(request.Tag)) if (!string.IsNullOrEmpty(request.CacheTag) && cacheGuid == new Guid(request.CacheTag))
{ {
cacheDuration = TimeSpan.FromDays(365); cacheDuration = TimeSpan.FromDays(365);
} }