28 lines
788 B
C#
28 lines
788 B
C#
namespace Umbraco.Core.Models.PublishedContent
|
|
{
|
|
/// <summary>
|
|
/// Represents the variation context.
|
|
/// </summary>
|
|
public class VariationContext
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="VariationContext"/> class.
|
|
/// </summary>
|
|
public VariationContext(string culture = null, string segment = null)
|
|
{
|
|
Culture = culture ?? ""; // cannot be null, default to invariant
|
|
Segment = segment ?? ""; // cannot be null, default to neutral
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the culture.
|
|
/// </summary>
|
|
public string Culture { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the segment.
|
|
/// </summary>
|
|
public string Segment { get; }
|
|
}
|
|
}
|