SaaS CMS has officially launched! Learn more now.

Class NumberOfVisitsModel

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Model class for NumberOfVisitsCriterion.

Inheritance
System.Object
NumberOfVisitsModel
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class NumberOfVisitsModel : CriterionModelBase, ICriterionModel, IDynamicData, IValidateCriterionModel

Constructors

NumberOfVisitsModel()

Declaration
public NumberOfVisitsModel()

Properties

Comparison

Gets or sets the ComparisonType.

Declaration
[DojoWidget(SelectionFactoryType = typeof(EnumSelectionFactory), LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/comparison", AdditionalOptions = "{ selectOnClick: true }")]
public ComparisonType Comparison { get; set; }
Property Value
Type Description
ComparisonType

The ComparisonType.

FixTime

Gets or sets the fix time that is used when TimeFrameSelection is set to Since.

Declaration
[DojoWidget(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/fixtime")]
public DateTime FixTime { get; set; }
Property Value
Type Description
System.DateTime

The fix time.

FloatTimePeriod

Gets or sets the float time value. This is used together with FloatTimeValue to create a period for which hits are counted.

Declaration
[DojoWidget(SelectionFactoryType = typeof(EnumSelectionFactory), LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/floattime", AdditionalOptions = "{ selectOnClick: true }")]
public TimePeriod FloatTimePeriod { get; set; }
Property Value
Type Description
TimePeriod

The float time value.

FloatTimeValue

Gets or sets the float time value. This is used together with FloatTimePeriod to create a period for which hits are counted.

Declaration
[DojoWidget(DefaultValue = 0, AdditionalOptions = "{ constraints: {min: 0}, selectOnClick: true }")]
public int FloatTimeValue { get; set; }
Property Value
Type Description
System.Int32

The float time value.

Threshold

Gets or sets the amount of hits that matches the given conditions that are needed in order to be considered part of the visitor segment.

Declaration
[DojoWidget(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/threshold", DefaultValue = 0, AdditionalOptions = "{constraints: {min: 0}, selectOnClick: true}")]
public int Threshold { get; set; }
Property Value
Type Description
System.Int32

The threshold.

TimeFrameSelection

Gets or sets the time frame selection. This affects how site hits are counted.

Declaration
[DojoWidget(SelectionFactoryType = typeof(EnumSelectionFactory), LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/timeframe", AdditionalOptions = "{ selectOnClick: true }")]
public TimeFrame TimeFrameSelection { get; set; }
Property Value
Type Description
TimeFrame

The time frame selection.

Methods

Copy()

Creates a new object that is a copy of the current instance.

Declaration
public override ICriterionModel Copy()
Returns
Type Description
ICriterionModel

A new object that is a copy of this instance.

Overrides

Validate(VisitorGroup)

Validate FixTime when TimeFrameSelection set to Since. Then its value should be savable into database.

Declaration
public CriterionValidationResult Validate(VisitorGroup currentGroup)
Parameters
Type Name Description
VisitorGroup currentGroup

The current group.

Returns
Type Description
CriterionValidationResult

Implements

Extension Methods