Exemple #1
0
 public static void UpdateMeeting(string id, MeetingConfiguration meetingConfig)
 {
     lock (meetings) {
         MeetingData m;
         meetings.TryGetValue (id, out m);
         m.CopyFrom (meetingConfig);
         LogService.Log ("Updated Meeting {0}", id);
         NotifyMeetingChanged (m);
     }
 }
Exemple #2
0
 public void CopyFrom(MeetingConfiguration meetingConfig)
 {
     Longitude = meetingConfig.Longitude;
     Latitude = meetingConfig.Latitude;
     Name = meetingConfig.Name;
     Timeout = meetingConfig.Timeout;
 }
Exemple #3
0
 public static string RegisterMeeting(MeetingConfiguration meetingConfig)
 {
     lock (meetings) {
         var data = new MeetingData (meetingConfig);
         data.Id = GenerateRandomId ();
         data.Timestamp = DateTime.Now;
         meetings[data.Id] = data;
         LogService.Log ("Registered Meeting {0}", data.Id);
         return data.Id;
     }
 }
Exemple #4
0
 public MeetingData(MeetingConfiguration meetingConfig)
 {
     CopyFrom (meetingConfig);
 }