﻿function CalendarMeetingData(calendarObj, calendarMeetingBlocks, allDayCalendarMeetings)
{
    this.calendarObj = calendarObj;
    this.calendarMeetingBlocks = calendarMeetingBlocks;
    this.allDayCalendarMeetings = allDayCalendarMeetings;
    this.selectedForDisplay = false;
    //Below properties are used in replies page, and are specific to it
//    this.ignored = false;
    this.freeMeetingTimes = null;
    this.overlapMeetingGroupArr = null;
    this.IsCrossDayHandled = false;
}

CalendarMeetingData.prototype.HandleOverlapMeetingGrouping = function()
{   
    if (!this.IsCrossDayHandled && curCalendarData.timeZoneObj != null && curCalendarData.timeZoneObj.id > 0 && this.calendarMeetingBlocks != null)
    {
       this.calendarMeetingBlocks =  HandleCrossDayMeetingBlocks(this.calendarMeetingBlocks);
       this.IsCrossDayHandled = true;
    }
    this.overlapMeetingGroupArr = GroupOverlapMeetings(this.allDayCalendarMeetings, this.calendarMeetingBlocks);
}
