Helper Class Reference 1.4
HomeGenie - Automation Programs API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SchedulerHelper Class Reference

Scheduler helper.
Class instance accessor: Scheduler More...

Public Member Functions

SchedulerHelper WithName (string name)
 Selects the schedule with the specified name.
 
SchedulerItem Get ()
 Gets the selected schedule instance.
 
SchedulerHelper SetSchedule (string cronExpression)
 Adds/Modifies the schedule with the previously selected name.
 
bool IsScheduling ()
 Determines whether the selected schedule is matching in this very moment.
 
bool IsScheduling (string cronExpression)
 Determines whether the given cron expression is matching at this very moment.
 
bool IsOccurrence (DateTime date, string cronExpression)
 Determines whether the given cron expression is a matching occurrence at the given date/time.
 
SolarTimes SolarTimes (DateTime date)
 Solar Times data.
 

Detailed Description

Scheduler helper.
Class instance accessor: Scheduler

Member Function Documentation

◆ WithName()

SchedulerHelper WithName ( string  name)

Selects the schedule with the specified name.

Parameters
nameName.

◆ SetSchedule()

SchedulerHelper SetSchedule ( string  cronExpression)

Adds/Modifies the schedule with the previously selected name.

Parameters
cronExpressionCron expression.

◆ IsScheduling() [1/2]

bool IsScheduling ( )

Determines whether the selected schedule is matching in this very moment.

Returns
true if the selected schedule is matching, otherwise, false.

◆ IsScheduling() [2/2]

bool IsScheduling ( string  cronExpression)

Determines whether the given cron expression is matching at this very moment.

Returns
true if the given cron expression is matching; otherwise, false.
Parameters
cronExpressionCron expression.

◆ IsOccurrence()

bool IsOccurrence ( DateTime  date,
string  cronExpression 
)

Determines whether the given cron expression is a matching occurrence at the given date/time.

Returns
true if the given cron expression is matching; otherwise, false.
Parameters
dateDate.
cronExpressionCron expression.

◆ SolarTimes()

SolarTimes SolarTimes ( DateTime  date)

Solar Times data.

Returns
SolarTime data.
Parameters
dateDate.

The documentation for this class was generated from the following file: