public static IRestResponse CreateZoomMeeting(string token, string startDate, string endDate, int duration) { var client = new RestClient("https://api.zoom.us/v2/users/" + "VPAkCe2vR9mdy7AIi5n79w" + "/meetings"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer " + token); CreateMeeting createMeeting = new CreateMeeting(); createMeeting.topic = "Test"; createMeeting.type = 2; createMeeting.start_time = startDate; createMeeting.duration = duration; createMeeting.timezone = ""; createMeeting.topic = ""; createMeeting.topic = ""; recurrence recurrence = new recurrence(); recurrence.type = 1; recurrence.repeat_interval = 0; recurrence.weekly_days = 1; recurrence.monthly_day = 0; recurrence.monthly_week = -1; recurrence.monthly_week_day = 1; recurrence.end_times = 0; recurrence.end_date_time = endDate; settings settings = new settings(); settings.host_video = true; settings.participant_video = true; settings.cn_meeting = false; settings.in_meeting = false; settings.join_before_host = false; settings.mute_upon_entry = false; settings.watermark = false; settings.use_pmi = false; settings.approval_type = 2; settings.registration_type = 1; settings.audio = "both"; settings.auto_recording = "none"; settings.enforce_login = true; settings.enforce_login_domains = ""; createMeeting.recurrence = recurrence; createMeeting.settings = settings; string json = JsonConvert.SerializeObject(createMeeting); request.AddParameter("application/json", json, ParameterType.RequestBody); IRestResponse response = client.Execute(request); return(response); }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name = "other" /> parameter; /// otherwise, false. /// </returns> public bool Equals(RuleLine other) => !(other is null) && Equals(recurrence, other.recurrence) && Equals(daylightSavingsIndicator, other.daylightSavingsIndicator);
!(other is null) && Equals(recurrence, other.recurrence) && Equals(daylightSavingsIndicator, other.daylightSavingsIndicator);