mirror of
https://github.com/Readarr/Readarr
synced 2025-12-28 11:13:22 +01:00
13 lines
369 B
C#
13 lines
369 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Readarr.Http.REST
|
|
{
|
|
public abstract class RestResource
|
|
{
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
|
public virtual int Id { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public virtual string ResourceName => GetType().Name.ToLowerInvariant().Replace("resource", "");
|
|
}
|
|
}
|