mirror of
https://github.com/Readarr/Readarr.git
synced 2026-03-05 13:20:32 -05:00
14 lines
361 B
C#
14 lines
361 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Readarr.Http.REST
|
|
{
|
|
public abstract class RestResource
|
|
{
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
|
public int Id { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual string ResourceName => GetType().Name.ToLowerInvariant().Replace("resource", "");
|
|
}
|
|
}
|