Class NumberOfVisitsModel

Model class for NumberOfVisitsCriterion.

Inheritance
System.Object
NumberOfVisitsModel
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class NumberOfVisitsModel : CriterionModelBase, ICriterionModel, IDynamicData, IValidateCriterionModel

Constructors

NumberOfVisitsModel()

Declaration
public NumberOfVisitsModel()

Properties

Comparison

Gets or sets the ComparisonType.

Declaration
[CriterionPropertyEditor(SelectionFactoryType = null, LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/comparison")]
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
[CriterionPropertyEditor(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
[CriterionPropertyEditor(SelectionFactoryType = null, LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/floattime")]
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
[CriterionPropertyEditor(DefaultValue = 0)]
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
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/threshold", DefaultValue = 0)]
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
[CriterionPropertyEditor(SelectionFactoryType = null, LabelTranslationKey = "/shell/cms/visitorgroups/criteria/numberofvisits/timeframe")]
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