Skip to content

Commit

Permalink
feat: Added ContentRedirect variation to BasicContent
Browse files Browse the repository at this point in the history
  • Loading branch information
nikcio committed Jun 10, 2022
1 parent 5c44965 commit c9d7912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Examples/Docs/Content/CustomBasicContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class CustomBasicContent : BasicContent {

public string MyCustomValue { get; set; }

public CustomBasicContent(CreateContent createContent, IPropertyFactory<BasicProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<BasicProperty, BasicContentType>, BasicProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
public CustomBasicContent(CreateContent createContent, IPropertyFactory<BasicProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<BasicProperty, BasicContentType, BasicContentRedirect>, BasicProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
MyCustomValue = "Custom Value";
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Nikcio.UHeadless.Basics/Content/Models/BasicContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Nikcio.UHeadless.Basics.Content.Models {
[GraphQLDescription("Represents a content item.")]
public class BasicContent : BasicContent<BasicProperty> {
/// <inheritdoc/>
public BasicContent(CreateContent createContent, IPropertyFactory<BasicProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<BasicProperty, BasicContentType>, BasicProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
public BasicContent(CreateContent createContent, IPropertyFactory<BasicProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<BasicProperty, BasicContentType, BasicContentRedirect>, BasicProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
}
}

Expand All @@ -30,7 +30,7 @@ public BasicContent(CreateContent createContent, IPropertyFactory<BasicProperty>
public class BasicContent<TProperty> : BasicContent<TProperty, BasicContentType>
where TProperty : IProperty {
/// <inheritdoc/>
public BasicContent(CreateContent createContent, IPropertyFactory<TProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<TProperty, BasicContentType>, TProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
public BasicContent(CreateContent createContent, IPropertyFactory<TProperty> propertyFactory, IContentTypeFactory<BasicContentType> contentTypeFactory, IContentFactory<BasicContent<TProperty, BasicContentType, BasicContentRedirect>, TProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
}
}

Expand All @@ -44,7 +44,7 @@ public class BasicContent<TProperty, TContentType> : BasicContent<TProperty, TCo
where TProperty : IProperty
where TContentType : IContentType {
/// <inheritdoc/>
public BasicContent(CreateContent createContent, IPropertyFactory<TProperty> propertyFactory, IContentTypeFactory<TContentType> contentTypeFactory, IContentFactory<BasicContent<TProperty, TContentType>, TProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, (IContentFactory<BasicContent<TProperty, TContentType, BasicContentRedirect>, TProperty>) contentFactory) {
public BasicContent(CreateContent createContent, IPropertyFactory<TProperty> propertyFactory, IContentTypeFactory<TContentType> contentTypeFactory, IContentFactory<BasicContent<TProperty, TContentType, BasicContentRedirect>, TProperty> contentFactory) : base(createContent, propertyFactory, contentTypeFactory, contentFactory) {
}
}

Expand Down

0 comments on commit c9d7912

Please sign in to comment.