forked from JSONAPIdotNET/JSONAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIEphemeralRelatedResourceReader.cs
More file actions
35 lines (33 loc) · 1.26 KB
/
Copy pathIEphemeralRelatedResourceReader.cs
File metadata and controls
35 lines (33 loc) · 1.26 KB
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
27
28
29
30
31
32
33
34
35
using System;
using JSONAPI.Documents;
namespace JSONAPI.Core
{
/// <summary>
/// Populates property values on an ephemeral resource from a relationship object
/// </summary>
/// <typeparam name="T"></typeparam>
[Obsolete]
public interface IEphemeralRelatedResourceReader<T>
{
/// <summary>
/// Sets the property on the ephemeral resource that corresponds to the given property
/// </summary>
/// <param name="ephemeralResource"></param>
/// <param name="jsonKey"></param>
/// <param name="relationshipObject"></param>
void SetProperty(T ephemeralResource, string jsonKey, IRelationshipObject relationshipObject);
}
/// <summary>
/// Populates property values on an ephemeral resource from a relationship object
/// </summary>
public interface IEphemeralRelatedResourceReader
{
/// <summary>
/// Sets the property on the ephemeral resource that corresponds to the given property
/// </summary>
/// <param name="ephemeralResource"></param>
/// <param name="jsonKey"></param>
/// <param name="relationshipObject"></param>
void SetProperty<T>(T ephemeralResource, string jsonKey, IRelationshipObject relationshipObject);
}
}