Class TimeOfDayModel
Model class of TimeOfDay criterion
Inherited Members
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
[EPiServerDataStore(AutomaticallyRemapStore = true)]
public class TimeOfDayModel : CriterionModelBase, ICriterionModel, IDynamicData
Constructors
TimeOfDayModel()
Declaration
public TimeOfDayModel()
Properties
EndTime
Gets or sets the end time.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/endtime", Order = 2, AdditionalPropsJson = "{ \"type\" : \"time\" }")]
public Nullable<DateTime> EndTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The end time. |
Friday
Gets or sets a value indicating whether this TimeOfDayModel is friday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/friday", Order = 7)]
public bool Friday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Monday
Gets or sets a value indicating whether this TimeOfDayModel is monday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/monday", Order = 3)]
public bool Monday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Saturday
Gets or sets a value indicating whether this TimeOfDayModel is saturday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/saturday", Order = 8)]
public bool Saturday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
StartTime
Gets or sets the start time.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/starttime", Order = 1, AdditionalPropsJson = "{ \"type\" : \"time\" }")]
public Nullable<DateTime> StartTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The start time. |
Sunday
Gets or sets a value indicating whether this TimeOfDayModel is sunday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/sunday", Order = 9)]
public bool Sunday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Thursday
Gets or sets a value indicating whether this TimeOfDayModel is thursday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/thursday", Order = 6)]
public bool Thursday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Tuesday
Gets or sets a value indicating whether this TimeOfDayModel is tuesday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/tuesday", Order = 4)]
public bool Tuesday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Wednesday
Gets or sets a value indicating whether this TimeOfDayModel is wednesday.
Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/timeofday/wednesday", Order = 5)]
public bool Wednesday { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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. |