Partager via


7.8 calendarData/workingHours Category

 Location: http://schemas.microsoft.com/exchange/services/2006/types

 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema
   targetNamespace="http://schemas.microsoft.com/exchange/services/2006/types"
   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   elementFormDefault="qualified"
   attributeFormDefault="unqualified">
   
   <xs:simpleType name="DayOfWeekType">
     <xs:restriction base="xs:string">
       <xs:enumeration value="Sunday" />
       <xs:enumeration value="Monday" />
       <xs:enumeration value="Tuesday" />
       <xs:enumeration value="Wednesday" />
       <xs:enumeration value="Thursday" />
       <xs:enumeration value="Friday" />
       <xs:enumeration value="Saturday" />
       <xs:enumeration value="Day" />
       <xs:enumeration value="Weekday" />
       <xs:enumeration value="WeekendDay" />
     </xs:restriction>
   </xs:simpleType>
   <xs:simpleType name="DaysOfWeekType">
     <xs:list itemType="t:DayOfWeekType" />
   </xs:simpleType>
   <xs:complexType name="WorkingPeriod">
     <xs:sequence>
       <xs:element minOccurs="1" maxOccurs="1" name="DayOfWeek" type="t:DaysOfWeekType" />
       <xs:element minOccurs="1" maxOccurs="1" name="StartTimeInMinutes" type="xs:int" />
       <xs:element minOccurs="1" maxOccurs="1" name="EndTimeInMinutes" type="xs:int" />
     </xs:sequence>
   </xs:complexType>
   <xs:complexType name="ArrayOfWorkingPeriod">
     <xs:sequence>
       <xs:element minOccurs="0" maxOccurs="unbounded" name="WorkingPeriod" type="t:WorkingPeriod" />
     </xs:sequence>
   </xs:complexType>
   <xs:annotation>
     <xs:documentation>
       This type is copied from exchange schema.
     </xs:documentation>
   </xs:annotation>
   <xs:complexType name="SerializableTimeZoneTime">
     <xs:sequence>
       <xs:element minOccurs="1" maxOccurs="1" name="Bias" type="xs:int" />
       <xs:element minOccurs="1" maxOccurs="1" name="Time" type="xs:string" />
       <xs:element minOccurs="1" maxOccurs="1" name="DayOrder" type="xs:short" />
       <xs:element minOccurs="1" maxOccurs="1" name="Month" type="xs:short" />
       <xs:element minOccurs="1" maxOccurs="1" name="DayOfWeek" type="t:DayOfWeekType" />
     </xs:sequence>
   </xs:complexType>
   <xs:complexType name="SerializableTimeZone">
     <xs:sequence>
       <xs:element minOccurs="1" maxOccurs="1" name="Bias" type="xs:int" />
       <xs:element minOccurs="1" maxOccurs="1" name="StandardTime" type="t:SerializableTimeZoneTime" />
       <xs:element minOccurs="1" maxOccurs="1" name="DaylightTime" type="t:SerializableTimeZoneTime" />
     </xs:sequence>
   </xs:complexType>
   
   <xs:complexType name="WorkingHours">
     <xs:sequence>
       <xs:element minOccurs="1" maxOccurs="1" name="TimeZone" type="t:SerializableTimeZone" />
       <xs:element minOccurs="1" maxOccurs="1" name="WorkingPeriodArray" type="t:ArrayOfWorkingPeriod" />
     </xs:sequence>
   </xs:complexType>
  
   <xs:element name="WorkingHours" type="t:WorkingHours"/>
  
 </xs:schema>

Location: http://schemas.microsoft.com/2006/09/sip/calendarData

  
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema 
   targetNamespace="http://schemas.microsoft.com/2006/09/sip/calendarData" 
   xmlns:tns="http://schemas.microsoft.com/2006/09/sip/calendarData" 
   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:ct="http://schemas.microsoft.com/2006/09/sip/commontypes"
   elementFormDefault="qualified" 
   attributeFormDefault="unqualified">
  
   <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/types" 
              schemaLocation="calendardatatypes.xsd"/>
  
   <xs:import namespace="http://schemas.microsoft.com/2006/09/sip/commontypes"
              schemaLocation="commontypes.xsd"/>
  
   <xs:complexType name="calendarType">
     <xs:sequence>
       <xs:choice minOccurs="0" maxOccurs="1">
         <xs:element ref="t:WorkingHours"/>
         <xs:element name="freeBusy">
           <xs:complexType>
             <xs:simpleContent>
               <xs:extension base="xs:base64Binary">
                 <xs:attribute name="startTime" type="xs:dateTime" use="required"/>
                 <xs:attribute name="granularity" type="xs:duration" use="required" />
                 <xs:attribute name="encodingVersion" type="xs:decimal" use="required" />
                 <xs:anyAttribute processContents="lax"/>
               </xs:extension>
             </xs:simpleContent>
           </xs:complexType>
         </xs:element>
       </xs:choice>
  
       <xs:sequence minOccurs="0" maxOccurs="1">
         <xs:sequence minOccurs="0" maxOccurs="unbounded">
           <xs:element ref="ct:delimiter"/>
           <xs:any namespace="##targetNamespace" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
         </xs:sequence>
         <xs:element ref="ct:end"/>
       </xs:sequence>
       <xs:element ref="ct:extension" minOccurs="0" maxOccurs="1"/>
  
     </xs:sequence>
     <xs:attribute name="mailboxID" type="xs:anyURI" use="required" />
     <xs:attribute name="majorVersion" type="xs:unsignedInt" use="optional" />
     <xs:attribute name="minorVersion" type="xs:unsignedInt" use="optional" />
     <xs:anyAttribute processContents="lax"/>
   </xs:complexType>
   <xs:element name="calendarData" type="tns:calendarType" />
 </xs:schema>