/// <summary> /// Update a meeting in Zoom /// </summary> /// <param name="UserId">Host of the User</param> /// <param name="request">Meeting details</param> /// <returns></returns> public async Task <bool> UpdateMeeting(long MeetingId, UpdateMeetingRequest request) { var resp = await client.PatchAsync(ZOOM_HOST + $"/meetings/{MeetingId.ToString()}", toJson(request)); var body = await resp.Content.ReadAsStringAsync(); if ((int)resp.StatusCode != 204) { throw new Exception(body); } return(true); }
public void updateMeeting(Guid meetingID, Guid requestingUser, float myX, float myY, Func <Object, UpdateMeetingCompletedEventArgs, Void> functionToCall) { updateMeetingMethodToCall = functionToCall; var client = new MeetingServiceClient(new BasicHttpBinding(), new EndpointAddress(EndpointHelper.EndpointAddress)); var request = new UpdateMeetingRequest { MeetingId = meetingID, MyX = myX, MyY = myY, RequestingUserID = requestingUser }; sem.WaitOne(100); client.UpdateMeetingCompleted += storeMeeting; client.UpdateMeetingAsync(request); }