Пример #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);
        }
        internal void AddConferenceSyncPoint(ConferenceSyncPoint csp)
        {
            ConferenceSyncPoint existingConfSyncPoint = FindConferenceSyncPoint(csp.ThirdPartyId, csp.ThirdPartyName);

            if (existingConfSyncPoint == null)
            {
                this._conferenceSyncPoints.Add(csp);
            }
        }
        private void InjectConferenceSyncPoint(int confirmationNumber)
        {
            _confirmationNumber = confirmationNumber;
            ConferenceSyncPoint csp = new ConferenceSyncPoint();

            csp.ThirdPartyId       = _dsReport.Tables["Meeting Report"].Rows[0]["meetingId"].ToString();
            csp.ConfirmationNumber = confirmationNumber;
            csp.ThirdPartyName     = "SabreVM";
            _repository.AddConferenceSyncPoint(csp);
        }
Пример #4
0
 private Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ScheduleStatus ConverStatus(string status, ConferenceSyncPoint csp)
 {
     Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ScheduleStatus result;
     if (status.ToLower().Equals("cancelled"))
     {
         result = Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ScheduleStatus.Cancelled;
     }
     else if (csp == null)
     {
         result = Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ScheduleStatus.Scheduled;
     }
     else
     {
         result = Iformata.Vnoc.Symphony.Enterprise.Data.InformationModel.ScheduleStatus.Modified;
     }
     return(result);
 }