-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathToManyResourceLinkage.cs
More file actions
23 lines (21 loc) · 737 Bytes
/
ToManyResourceLinkage.cs
File metadata and controls
23 lines (21 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
namespace JSONAPI.Documents
{
/// <summary>
/// Describes linkage to a collection of resources
/// </summary>
public class ToManyResourceLinkage : IResourceLinkage
{
/// <summary>
/// Creates a To-many resource linkage object
/// </summary>
/// <param name="resourceIdentifiers"></param>
/// <exception cref="NotImplementedException"></exception>
public ToManyResourceLinkage(IResourceIdentifier[] resourceIdentifiers)
{
Identifiers = resourceIdentifiers ?? new IResourceIdentifier[] {};
}
public bool IsToMany { get { return true; } }
public IResourceIdentifier[] Identifiers { get; private set; }
}
}