using System;
using Kyoo.Abstractions.Controllers;
namespace Kyoo.Abstractions.Models.Attributes
{
///
/// The targeted relation can be loaded via a call to .
///
[AttributeUsage(AttributeTargets.Property)]
public class LoadableRelationAttribute : Attribute
{
///
/// The name of the field containing the related resource's ID.
///
public string RelationID { get; }
///
/// Create a new .
///
public LoadableRelationAttribute() { }
///
/// Create a new with a baking relationID field.
///
/// The name of the RelationID field.
public LoadableRelationAttribute(string relationID)
{
RelationID = relationID;
}
}
}