Timer Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class Timer : ICloneable, IObjectWithDataVersion, IObjectWithId, IObjectWithGuid
The Timer type exposes the following members.
| Name | Description | |
|---|---|---|
| ChangedBy | ||
| ChangeTime | ||
| CreatedBy | ||
| CreateTime | ||
| DataVersion | ||
| Description |
Contains a description based on the settings of the timer
| |
| Disabled | ||
| DisplayName |
Get the displayname of the timer which is in the format {Name} - {Description} (If a name is specified)
| |
| EndDate |
Only used if EndOn = EndDate
| |
| EndOn |
Does the timer have an end date?
| |
| HourPatternEnd |
HourPatternEnd is only used if RepeatPattern is either Minutely or Hourly.
| |
| HourPatternStart |
HourPatternStart is only used if RepeatPattern is either Minutely or Hourly.
| |
| Id | ||
| MonthPatternDay | ||
| MonthPatternDayNum | ||
| MonthPatternModifier | ||
| MonthPatternType |
Enum for patterntype of monthly timer
| |
| Name |
Name of the timer
| |
| Number | ||
| RepeatFactor |
How often should the timer be repeated?
Example: Hvis RepeatFactor = 3 and RepeatPattern="Weekly", the timer is executed every third week (on the week days specified in WeekPatternDays)
| |
| RepeatPattern |
Repeat pattern for the timer
| |
| StartDate |
Start date as interval is in UTC time.
The time part of the start date indicates when the timer is executed (unless RepeatPatter="Hourly")
| |
| UId | ||
| WeekPatternDays |
Enum for patterntype of week days
| |
| WorkWeekId |
Indicates the id of a possible workweek which the the timer uses.
If specified, the timer is performed only within workhours
Can only be used if the RepeatPattern is either: Minutely, Hourly or Daily.
Can be 0.
|
| Name | Description | |
|---|---|---|
| Clone | ||
| ExecutesOn |
Returnerer true hvis timer fyrer på tidspunktet angivet i dateTime.
| |
| FixHourPatternEnd | ||
| GetHourlyPatternDateTime |
Convert a time string to a DateTime object with default time
| |
| GetMonthPatternMatchDate |
Givet en måned (i et bestemt år) returneres den dato i månededen som
opfylder patternmodifier'en og patternday'en.
Eksempel: hvis year=2004, month=1, patternModifier="second" og
patternDay="wednesday" returneres 14. jan. 2004 da denne dato er den anden
onsdag i måneden (efter dansk kalender).
| |
| PassesFilter |
| Name | Description | |
|---|---|---|
| MinMinutelyFactor |
| Name | Description | |
|---|---|---|
| ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) | |
| ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) | |
| ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |