DetailsResultCalendarDurations Property |
If the field
IncludeCalendarDurations is set to true then this field contains the rental object calendar of the type
CalendarWeb. The
CalendarWeb instance contains an arrivals string in the new duration format.
If the field
IncludeCalendarDurations is set to false this field will be null.
For the duration based format each day has one of the following 4 values:
- Value 1:A??????????
- Value 2:a
- Value 3:B
- Value 4:b
Value 1 consists of the upper-case letter A followed by integer number. Value 1 represent a day where arrival is possible. The reverse one-based position of the bits
in the integer number, represent the possible durations in days for rental periods with arrival on this day. So the integer number 96 converts to the binary number 1100000
and the reverse of that is 0000011. Therefor durations of either 6 or 7 days are possible for arrivals on this day. The maximum value of this integer number is 4294967295(32 bits).
Value 2 represent a vacant day that is available for booking, but where arrival is NOT possible.
Value 3 and 4 represent a occupied day that is NOT available for booking.
All the days between the date
Offset and the date of
EndDate, both included, are represented by one of the 4 values followed by a comma.
Example of a string value for
ArrivalDays: A12384,a,a,a,a,a,a,A96,a,a,a,a,a,a,b,b
Namespace:
Tse.EasyBook.Server.DataContracts
Assembly:
Tse.EasyBook.Server.DataContracts (in Tse.EasyBook.Server.DataContracts.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic CalendarWeb CalendarDurations { get; set; }
Property Value
Type:
CalendarWeb
See Also