-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathResourceTypeField.cs
More file actions
26 lines (23 loc) · 707 Bytes
/
ResourceTypeField.cs
File metadata and controls
26 lines (23 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Reflection;
namespace JSONAPI.Core
{
/// <summary>
/// Stores a resource type's field and its usage.
/// </summary>
public abstract class ResourceTypeField
{
internal ResourceTypeField(PropertyInfo property, string jsonKey)
{
JsonKey = jsonKey;
Property = property;
}
/// <summary>
/// The PropertyInfo backing this ModelProperty
/// </summary>
public PropertyInfo Property { get; private set; }
/// <summary>
/// The key that will be used to represent this property in JSON API documents
/// </summary>
public string JsonKey { get; private set; }
}
}