コード例 #1
0
 public MeetingProposal(MeetingProposal proposal)
 {
     this.coordinator       = proposal.getCoordinator();
     this.topic             = proposal.getTopic();
     this.min_attendees     = proposal.min_attendees;
     this.slots             = proposal.getSlots();
     this.invitees          = proposal.invitees;
     this.closed            = proposal.isClosed();
     this.cancelled         = proposal.isCancelled();
     this.participants      = proposal.getParticipants();
     this.finalParticipants = proposal.getFinalParticipants();
     this.closingTimestamp  = proposal.getClosingTimestamp();
     this.selectedRoom      = proposal.selectedRoom;
     this.selectedSlot      = proposal.selectedSlot;
     this.roomsManager      = proposal.roomsManager;
 }
コード例 #2
0
        private MeetingProposal restoreLostMeeting(string topic)
        {
            Console.WriteLine("Restoring " + topic);
            string serversList = "servers.txt";

            string[] serversURLs = File.ReadAllLines(serversList);
            foreach (string url in serversURLs)
            {
                ServerObject server = (ServerObject)Activator.GetObject(typeof(ServerObject), url);
                if (server != null)
                {
                    MeetingProposal proposal      = server.getMeetingByTopic(topic);
                    MeetingProposal proposal_copy = new MeetingProposal(proposal);

                    if (proposal_copy != null)
                    {
                        this.createMeeting(proposal_copy.getCoordinator(), proposal_copy);
                        return(proposal_copy);
                    }
                }
            }
            return(null);
        }