-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for content type metadata
- Loading branch information
Showing
5 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Contentful.Core.Models.Management | ||
{ | ||
/// <summary> | ||
/// Represents a Contentful metadata object for this content type. | ||
/// </summary> | ||
public class ContentTypeMetadata | ||
{ | ||
/// <summary> | ||
/// The metadata annotations | ||
/// </summary> | ||
public ContentTypeMetadataAnnotation Annotations { get; set; } | ||
} | ||
|
||
public class ContentTypeMetadataAnnotation | ||
{ | ||
/// <summary> | ||
/// Annotations for the content type. | ||
/// </summary> | ||
public List<Reference> ContentType { get; set; } = new List<Reference>(); | ||
|
||
/// <summary> | ||
/// Annotations for the content type fields. | ||
/// </summary> | ||
public dynamic ContentTypeField { get; set; } | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters