Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace unifications #300

Merged
merged 3 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using Kentico.Kontent.Delivery.Abstractions.RetryPolicy;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.Configuration
{
/// <summary>
/// Represents configuration of the <see cref="IRetryPolicy"/> that performs retries using a randomized exponential back off scheme to determine the interval between retries.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.Configuration
{
/// <summary>
/// Represents configuration of the <see cref="IDeliveryClient"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.ContentLinks
{
/// <summary>
/// Represents a link to a content item in a Rich text element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.ContentLinks
{
/// <summary>
/// Defines the contract to resolve content links in Rich text element values.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.Elements
{
/// <summary>
/// Represents a content element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.ContentItems.ContentLinks;
using Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.Elements
{
/// <summary>
/// An element representing a rich-text value. In addition to formatted text,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.Elements
{
/// <summary>
/// An object representing a taxonomy element value.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents a digital asset, such as a document or image.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents system attributes of a content item.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a list of content items.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a content item.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents a feed that can be used to retrieve strongly typed content items from Kontent Delivery API in smaller batches.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Represents a partial response from Kontent Delivery API enumeration methods that contains a list of content items.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Reflection;
using System.Threading.Tasks;
using Kentico.Kontent.Delivery.Abstractions.ContentItems.Elements;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Provides value conversion for the given property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// A class that represents a generic image asset.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections;
using System.Threading.Tasks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Defines the contract for mapping content items to models.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Defines the contract for mapping Kontent content item fields to model properties.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Defines the contract for mapping Kontent content types to CLR types.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.InlineContentItems
{
/// <summary>
/// Interface implemented for processing inline content items in HTML
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.InlineContentItems
{
/// <summary>
/// An interface, implemented to be registered as resolver for specific content type of inline content item
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.InlineContentItems
{
/// <summary>
/// An interface, implemented to be registered in an collection passed to <see cref="IInlineContentItemsProcessor"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Threading.Tasks;
using Kentico.Kontent.Delivery.Abstractions.ContentItems.ContentLinks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems
{
/// <summary>
/// Context of the current resolving process
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks
{
/// <summary>
/// Represents HTML content rich text block
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks
{
/// <summary>
/// Represents inline content item block within rich text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks
{
/// <summary>
/// Represents inline image block within rich text
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks
{
/// <summary>
/// Base interface for rich text content blocks
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText.Blocks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentItems.RichText
{
/// <summary>
/// Represents rich text content in a form of structured data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes.Element
{
/// <summary>
/// Represents a content element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes.Element
{
interface IMultipleChoiceElement : IContentElement
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes.Element
{
interface ITaxonomyElement : IContentElement
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.ContentTypes.Element;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes
{
/// <summary>
/// Represents a content type.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Kentico.Kontent.Delivery.Abstractions
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes
{
/// <summary>
/// Represents system attributes of a content type.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Kentico.Kontent.Delivery.Abstractions
using Kentico.Kontent.Delivery.Abstractions.ContentTypes.Element;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a content type element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a list of content types.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Kentico.Kontent.Delivery.Abstractions
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions.ContentTypes
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a content type.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using System.Threading.Tasks;
using Kentico.Kontent.Delivery.Abstractions.ContentItems;
using Kentico.Kontent.Delivery.Abstractions.ContentTypes;
using Kentico.Kontent.Delivery.Abstractions.Languages;
using Kentico.Kontent.Delivery.Abstractions.TaxonomyGroups;

namespace Kentico.Kontent.Delivery.Abstractions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Kentico.Kontent.Delivery.Abstractions.Extensions
using Kentico.Kontent.Delivery.Abstractions.Configuration;

namespace Kentico.Kontent.Delivery.Abstractions.Extensions
{
/// <summary>
/// A class which contains extension methods on <see cref="DeliveryOptions"/>.
Expand Down
4 changes: 4 additions & 0 deletions Kentico.Kontent.Delivery.Abstractions/IDeliveryClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Kentico.Kontent.Delivery.Abstractions.ContentItems;
using Kentico.Kontent.Delivery.Abstractions.ContentTypes;
using Kentico.Kontent.Delivery.Abstractions.Languages;
using Kentico.Kontent.Delivery.Abstractions.TaxonomyGroups;

namespace Kentico.Kontent.Delivery.Abstractions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.Languages
{
/// <summary>
/// Represents a response from Kontent Delivery API that contains a list of languages.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.Languages
{
/// <summary>
/// Represents a language.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Kentico.Kontent.Delivery.Abstractions
using Kentico.Kontent.Delivery.Abstractions.SharedModels;

namespace Kentico.Kontent.Delivery.Abstractions.Languages
{
/// <summary>
/// Represents system attributes of a language.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Net.Http;
using System.Threading.Tasks;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.RetryPolicy
{
/// <summary>
/// Represents a retry policy for HTTP requests.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.RetryPolicy
{
/// <summary>
/// Provides a retry policy for <see cref="IDeliveryClient"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents a successful JSON response from Kontent Delivery API.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents a faulty JSON response from Kontent Delivery API.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents an option of a Multiple choice content element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents a pageable response.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents information about a page.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// A base interface for all response envelopes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents extended system attributes of any object in Kontent.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Kentico.Kontent.Delivery.Abstractions
namespace Kentico.Kontent.Delivery.Abstractions.SharedModels
{
/// <summary>
/// Represents system base attributes of any object in Kontent.
Expand Down
Loading