Click or drag to resize

Time Constructor

Create new Time object.

Namespace:  Koopman.CheckPoint
Assembly:  CheckPoint.NET (in CheckPoint.NET.dll) Version: 0.5.1
Syntax
C#
public Time(
	Session session,
	bool setIfExists = false
)
Request Example View Source

Parameters

session
Type: Koopman.CheckPointSession
The current session.
setIfExists (Optional)
Type: SystemBoolean
if set to true if another object with the same name already exists, it will be updated. Pay attention that original object's fields will be overwritten by the fields provided in the request payload!.
Examples
var t = new Time(Session)
{
Name = "MyTime",
Color = Colors.Red
};

t.HourRanges[0] = new Koopman.CheckPoint.Common.TimeRange("03:00", "04:00");
t.HourRanges[1] = new Koopman.CheckPoint.Common.TimeRange("15:00", "16:00");

t.Recurrence = new Time.RecurrenceClass() {
Pattern = Time.RecurrencePattern.Daily,
Weekdays = Days.Weekend
};

t.AcceptChanges();
See Also