예제 #1
0
        private Conference ConvertConference(SvmMeeting meeting)
        {
            Conference c = new Conference();

            c.AccountId = Guid.Empty;

            ConferenceSyncPoint csp = this._syncApi.GetConferenceSyncPoint(meeting.Id, this.EnterpriseSystemName);

            c.ConfirmationNumber = (csp == null) ? 0 : csp.ConfirmationNumber;

            c.CustomFormResponses = new List <FormFieldResponse>();
            c.IsPrivate           = false;
            c.Notes = meeting.Id;
            c.ThirdPartyConferenceId = meeting.Id;
            c.Owner             = meeting.HostEmail;
            c.Participants      = new List <Participant>();
            c.Requestor         = meeting.CreatorUserId;
            c.Schedule          = new ConferenceSchedule();
            c.Schedule.UtcSetup = meeting.StartTimeInGMT;
            c.Schedule.UtcStart = meeting.StartTimeInGMT;
            c.Schedule.UtcEnd   = meeting.EndTimeInGMT;
            c.Status            = ConverStatus(meeting.Status, csp);
            c.Timezone          = this.IanaTimezoneName;
            c.Title             = meeting.Title;
            c.Type = Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ConnectionType.MultiPoint;
            return(c);
        }
예제 #2
0
        private SvmMeeting ReadMeetingRow(DataRow row)
        {
            SvmMeeting m = new SvmMeeting();

            m.Title   = row["meetingtitle"].ToString();
            m.Id      = row["meetingId"].ToString();
            m.Locator = row["meetingLocator"].ToString();
            m.Status  = row["meetingStatus"].ToString();

            //Sample data will fail if UTC is included: 06/20/2013 04:30:00.000 UTC
            string   startString = RemoveUtcString(row["meetingStartTimeInGMT"].ToString());
            DateTime start       = DateTime.MinValue;

            DateTime.TryParse(startString, out start);
            m.StartTimeInGMT = new DateTime(start.Ticks, DateTimeKind.Utc);

            //Sample data will fail if UTC is included: 06/20/2013 04:30:00.000 UTC
            string   endString = RemoveUtcString(row["meetingEndTimeInGMT"].ToString());
            DateTime end       = DateTime.MinValue;

            DateTime.TryParse(endString, out end);
            m.EndTimeInGMT = new DateTime(end.Ticks, DateTimeKind.Utc);

            m.CompanyId     = row["meetingCreatorCompanyId"].ToString();
            m.HostEmail     = row["meetingHostEmail"].ToString();
            m.CreatorUserId = row["meetingCreatorUserId"].ToString();

            m.RoomId   = row["roomId"].ToString();
            m.RoomName = row["roomName"].ToString();
            return(m);
        }
예제 #3
0
        private List <SvmMeeting> LoadMeetings(DataTable meetingReport)
        {
            List <SvmMeeting> meetings = new List <SvmMeeting>();

            foreach (DataRow row in meetingReport.Rows)
            {
                SvmMeeting meeting = ReadMeetingRow(row);
                meetings.Add(meeting);
            }
            return(meetings);
        }
예제 #4
0
        private Participant ConvertParticipant(SvmMeeting meeting)
        {
            Participant p = new Participant();

            p.Schedule          = new ConferenceSchedule();
            p.Schedule.UtcSetup = meeting.StartTimeInGMT;
            p.Schedule.UtcStart = meeting.StartTimeInGMT;
            p.Schedule.UtcEnd   = meeting.EndTimeInGMT;
            SpaceSyncPoint sp = this._syncApi.GetRoomSyncPoint(meeting.RoomId, this.EnterpriseSystemName);

            p.SpaceId         = sp.SpaceId;
            p.ParticipantType = (p.SpaceId == Guid.Empty) ? Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ParticipantType.UnprofiledSpace : Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ParticipantType.ProfiledSpace;
            return(p);
        }