-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathIResourceLinkage.cs
More file actions
20 lines (19 loc) · 641 Bytes
/
IResourceLinkage.cs
File metadata and controls
20 lines (19 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace JSONAPI.Documents
{
/// <summary>
/// Describes a relationship's linkage
/// </summary>
public interface IResourceLinkage
{
/// <summary>
/// Whether the linkage is to-many (true) or to-one (false).
/// </summary>
bool IsToMany { get; }
/// <summary>
/// The identifiers this linkage refers to. If IsToMany is false, this
/// property must return an array of length either 0 or 1. If true,
/// the array may be of any length. This property must not return null.
/// </summary>
IResourceIdentifier[] Identifiers { get; }
}
}