mirror of
https://github.com/Radarr/Radarr
synced 2025-12-17 13:56:52 +01:00
13 lines
347 B
C#
13 lines
347 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Radarr.Http.REST
|
|
{
|
|
public abstract class RestResource
|
|
{
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public int Id { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual string ResourceName => GetType().Name.ToLowerInvariant().Replace("resource", "");
|
|
}
|
|
}
|