using System.Globalization;
namespace Umbraco.Web.Routing
{
///
/// Represents a published snapshot domain.
///
public class Domain
{
///
/// Initializes a new instance of the class.
///
/// The unique identifier of the domain.
/// The name of the domain.
/// The identifier of the content which supports the domain.
/// The culture of the domain.
/// A value indicating whether the domain is a wildcard domain.
public Domain(int id, string name, int contentId, CultureInfo culture, bool isWildcard)
{
Id = id;
Name = name;
ContentId = contentId;
Culture = culture;
IsWildcard = isWildcard;
}
///
/// Initializes a new instance of the class.
///
/// An origin domain.
protected Domain(Domain domain)
{
Id = domain.Id;
Name = domain.Name;
ContentId = domain.ContentId;
Culture = domain.Culture;
IsWildcard = domain.IsWildcard;
}
///
/// Gets the unique identifier of the domain.
///
public int Id { get; }
///
/// Gets the name of the domain.
///
public string Name { get; }
///
/// Gets the identifier of the content which supports the domain.
///
public int ContentId { get; }
///
/// Gets the culture of the domain.
///
public CultureInfo Culture { get; }
///
/// Gets a value indicating whether the domain is a wildcard domain.
///
public bool IsWildcard { get; }
}
}