Class Calendar.WorkingHoursData
Represents the information about the user's working hours. Only available for primary calendars of Google Workspace users. To update the working hours, the entire working hours object must be passed. If not specified (or passed as null or an empty object), the existing working hours remain unchanged. To disable working hours or clear the schedule, set workingHoursEnabled to false (and omit availableTimes or pass an empty list).
Inherited Members
Namespace: Google.Apis.Calendar.v3.Data
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class Calendar.WorkingHoursData
Properties
AvailableTimes
Working hours. Each availability period represents the user's working hours block during one day.
Declaration
[JsonProperty("availableTimes")]
public virtual IList<Calendar.WorkingHoursData.AvailableTimesData> AvailableTimes { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<Calendar.WorkingHoursData.AvailableTimesData> |
WorkingHoursEnabled
Whether the working hours are enabled for this calendar. Cannot be set to true when availableTimes is empty.
Declaration
[JsonProperty("workingHoursEnabled")]
public virtual bool? WorkingHoursEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |