public static void AddToGoogleCalander(Lecture l, GoogleLoginWrapper Login) { FeedQuery feedQuery = Login.GetFeedQuery(); Google.GData.Calendar.EventEntry calEvent = new Google.GData.Calendar.EventEntry(l.GetCourseCode(), l.ToString(), l.GetRoomNumber()); calEvent.Authors.Add(Login.Author()); calEvent.AddExtension(new Google.GData.Extensions.When(l.GetStartDateTime(), l.GetEndDateTime())); Service service = Login.CurrentService(); calEvent.Service = service; calEvent.Update(); service.Query(feedQuery); }