SaaS CMS has officially launched! Learn more now.

Class NumberOfVisitsModel

Model class for NumberOfVisitsCriterion.

Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionModelBase
NumberOfVisitsModel
Implements
EPiServer.Personalization.VisitorGroups.ICriterionModel
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionModelBase.ShallowCopy()
EPiServer.Personalization.VisitorGroups.CriterionModelBase.LocalizationService
EPiServer.Personalization.VisitorGroups.CriterionModelBase.Id
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.dll
Version: 8.11.0
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
EPiServer.Personalization.VisitorGroups.ICriterionModel

A new object that is a copy of this instance.

Overrides
EPiServer.Personalization.VisitorGroups.CriterionModelBase.Copy()

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
EPiServer.Personalization.VisitorGroups.VisitorGroup currentGroup

The current group.

Returns
Type Description
EPiServer.Personalization.VisitorGroups.CriterionValidationResult

Implements

EPiServer.Personalization.VisitorGroups.ICriterionModel
EPiServer.Personalization.VisitorGroups.IValidateCriterionModel

Extension Methods