Class WorkingHours
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.complex.ComplexProperty
-
- microsoft.exchange.webservices.data.property.complex.availability.WorkingHours
-
- All Implemented Interfaces:
ISelfValidate,ComplexFunctionDelegate<EwsServiceXmlReader>
public final class WorkingHours extends ComplexProperty
Represents the working hours for a specific time zone.
-
-
Constructor Summary
Constructors Constructor Description WorkingHours()Instantiates a new working hours.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<DayOfTheWeek>getDaysOfTheWeek()Gets the working days of the attendees.longgetEndTime()Gets the time of the day the attendee stops working.longgetStartTime()Gets the time of the day the attendee starts working.TimeZoneDefinitiongetTimeZone()Gets the time zone to which the working hours apply.booleantryReadElementFromXml(EwsServiceXmlReader reader)Tries to read element from XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeElementsToXml, writeToXml, writeToXml
-
-
-
-
Constructor Detail
-
WorkingHours
public WorkingHours()
Instantiates a new working hours.
-
-
Method Detail
-
tryReadElementFromXml
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
Tries to read element from XML.- Overrides:
tryReadElementFromXmlin classComplexProperty- Parameters:
reader- accepts EwsServiceXmlReader- Returns:
- True if element was read
- Throws:
Exception- throws Exception
-
getTimeZone
public TimeZoneDefinition getTimeZone()
Gets the time zone to which the working hours apply.- Returns:
- the time zone
-
getDaysOfTheWeek
public Collection<DayOfTheWeek> getDaysOfTheWeek()
Gets the working days of the attendees.- Returns:
- the days of the week
-
getStartTime
public long getStartTime()
Gets the time of the day the attendee starts working.- Returns:
- the start time
-
getEndTime
public long getEndTime()
Gets the time of the day the attendee stops working.- Returns:
- the end time
-
-