-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,16 +149,16 @@ public async Task RunAsync(string userId, IZoomClient client, TextWriter log, Ca | |
await log.WriteLineAsync($"This meeting has {pendingRegistrations.TotalRecords} registrations awaiting approval and {approvedRegistrations.TotalRecords} approved registrations").ConfigureAwait(false); | ||
|
||
await client.Meetings.CancelRegistrantAsync(scheduledMeeting.Id, registrantInfo1.Id, "[email protected]", null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Regristration {registrant1.Id} was canceled").ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registration {registrant1.Id} was canceled").ConfigureAwait(false); | ||
|
||
await client.Meetings.RejectRegistrantAsync(scheduledMeeting.Id, registrantInfo2.Id, "[email protected]", null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Regristration {registrant2.Id} was rejected").ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registration {registrant2.Id} was rejected").ConfigureAwait(false); | ||
|
||
await client.Meetings.DeleteRegistrantAsync(scheduledMeeting.Id, registrantInfo1.Id, null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Regristration {registrant1.Id} was deleted").ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registration {registrant1.Id} was deleted").ConfigureAwait(false); | ||
|
||
await client.Meetings.DeleteRegistrantAsync(scheduledMeeting.Id, registrantInfo2.Id, null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Regristration {registrant1.Id} was deleted").ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registration {registrant1.Id} was deleted").ConfigureAwait(false); | ||
|
||
await client.Meetings.DeleteAsync(newScheduledMeeting.Id, null, false, false, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Scheduled meeting {newScheduledMeeting.Id} deleted").ConfigureAwait(false); | ||
|
@@ -179,6 +179,9 @@ public async Task RunAsync(string userId, IZoomClient client, TextWriter log, Ca | |
var recurringMeeting = (RecurringMeeting)await client.Meetings.GetAsync(newRecurringMeeting.Id, null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Recurring meeting {recurringMeeting.Id} retrieved").ConfigureAwait(false); | ||
|
||
var inviteLinks = await client.Meetings.CreateInviteLinksAsync(recurringMeeting.Id, new[] { "Bob", "Bill", "John" }, 7200, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"{inviteLinks.Length} invite links created").ConfigureAwait(false); | ||
|
||
var occurenceId = recurringMeeting.Occurrences[0].OccurrenceId; | ||
await client.Meetings.UpdateMeetingOccurrenceAsync(newRecurringMeeting.Id, occurenceId, duration: 99, cancellationToken: cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Recurring meeting {newRecurringMeeting.Id} occurence {occurenceId} updated").ConfigureAwait(false); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Meeting invite link. | ||
/// </summary> | ||
public class InviteLink | ||
{ | ||
/// <summary> | ||
/// Gets or sets the display name of the invited attendee. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the URL to join the meeting. | ||
/// </summary> | ||
/// <value>The join URL.</value> | ||
[JsonProperty(PropertyName = "join_url", NullValueHandling = NullValueHandling.Ignore)] | ||
public string JoinUrl { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters