Fixes for sonarr, we now display the error messages back to the user

This commit is contained in:
tidusjar 2016-04-07 20:38:36 +01:00
commit 10be8f0440
7 changed files with 55 additions and 16 deletions

View file

@ -26,7 +26,7 @@ namespace PlexRequests.Api.Models.Sonarr
public string titleSlug { get; set; }
public int id { get; set; }
[JsonIgnore]
public string ErrorMessage { get; set; }
public List<string> ErrorMessages { get; set; }
}
public class AddOptions

View file

@ -24,13 +24,22 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ************************************************************************/
#endregion
using System.Collections.Generic;
using Newtonsoft.Json;
namespace PlexRequests.Api.Models.Sonarr
{
public class SonarrError
{
public string propertyName { get; set; }
public string errorMessage { get; set; }
public string attemptedValue { get; set; }
public string[] formattedMessageArguments { get; set; }
public object attemptedValue { get; set; }
public FormattedMessagePlaceholderValues formattedMessagePlaceholderValues { get; set; }
}
public class FormattedMessagePlaceholderValues
{
public string propertyName { get; set; }
public object propertyValue { get; set; }
}
}