forked from JSONAPIdotNET/JSONAPI.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMetadataManager.cs
More file actions
20 lines (19 loc) · 788 Bytes
/
Copy pathIMetadataManager.cs
File metadata and controls
20 lines (19 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Reflection;
namespace JSONAPI.Core
{
/// <summary>
/// Manages request-specific metadata
/// </summary>
public interface IMetadataManager
{
/// <summary>
/// Find whether or not a given property was
/// posted in the original JSON--i.e. to determine whether an update operation should be
/// performed, and/or if a default value should be used.
/// </summary>
/// <param name="deserialized">The object deserialized by JsonApiFormatter</param>
/// <param name="prop">The property to check</param>
/// <returns>Whether or not the property was found in the original JSON and set by the deserializer</returns>
bool PropertyWasPresent(object deserialized, PropertyInfo prop);
}
}