-
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
44 changed files
with
1,544 additions
and
156 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
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,27 @@ | ||
using System; | ||
using System.IO; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using ZoomNet.Models; | ||
|
||
namespace ZoomNet.IntegrationTests.Tests | ||
{ | ||
public class CallLogs : IIntegrationTest | ||
{ | ||
public async Task RunAsync(User myUser, string[] myPermissions, IZoomClient client, TextWriter log, CancellationToken cancellationToken) | ||
{ | ||
if (cancellationToken.IsCancellationRequested) return; | ||
|
||
await log.WriteLineAsync("\n***** CALL LOGS *****\n").ConfigureAwait(false); | ||
|
||
var now = DateTime.UtcNow; | ||
var from = now.Subtract(TimeSpan.FromDays(30)); | ||
var to = now; | ||
|
||
// GET USER'S CALL LOGS | ||
var allCallLogs = await client.CallLogs.GetAsync(myUser.Email, from, to, CallLogType.All, null, 100, null, cancellationToken); | ||
var missedCalllogs = await client.CallLogs.GetAsync(myUser.Email, from, to, CallLogType.Missed, null, 100, null, cancellationToken); | ||
await log.WriteLineAsync($"All call Logs: {allCallLogs.Records.Length}. Missed call logs: {missedCalllogs.Records.Length}").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 |
---|---|---|
|
@@ -65,6 +65,9 @@ public async Task RunAsync(User myUser, string[] myPermissions, IZoomClient clie | |
var instantMeeting = (InstantMeeting)await client.Meetings.GetAsync(newInstantMeeting.Id, null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Instant meeting {instantMeeting.Id} retrieved").ConfigureAwait(false); | ||
|
||
var localRecordingToken = await client.Meetings.GetTokenForLocalRecordingAsync(newInstantMeeting.Id, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"The token for local recording is: {localRecordingToken}").ConfigureAwait(false); | ||
|
||
await client.Meetings.EndAsync(newInstantMeeting.Id, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Instant meeting {newInstantMeeting.Id} ended").ConfigureAwait(false); | ||
|
||
|
@@ -131,6 +134,14 @@ public async Task RunAsync(User myUser, string[] myPermissions, IZoomClient clie | |
|
||
if (myUser.Type == UserType.Licensed) | ||
{ | ||
var registrants = new List<BatchRegistrant> | ||
{ | ||
new BatchRegistrant { Email = "[email protected]", FirstName = "Mariful", LastName = "Maruf" }, | ||
new BatchRegistrant { Email = "[email protected]", FirstName = "Abdullah", LastName = "Galib" } | ||
}; | ||
var registrantsInfo = await client.Meetings.PerformBatchRegistrationAsync(scheduledMeeting.Id, registrants, true).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registrants {registrantsInfo} added to meeting {scheduledMeeting.Id}").ConfigureAwait(false); | ||
|
||
var registrationAnswers1 = new[] | ||
{ | ||
new RegistrationAnswer { Title = "Are you happy?", Answer = "Yes" } | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,14 @@ public async Task RunAsync(User myUser, string[] myPermissions, IZoomClient clie | |
await log.WriteLineAsync($" - there are {registrationQuestions.Questions.Count(q => q.IsRequired)} required custom questions.").ConfigureAwait(false); | ||
await log.WriteLineAsync($" - there are {registrationQuestions.Questions.Count(q => !q.IsRequired)} optional custom questions.").ConfigureAwait(false); | ||
|
||
var registrants = new List<BatchRegistrant> | ||
{ | ||
new BatchRegistrant { Email = "[email protected]", FirstName = "Mariful", LastName = "Maruf" }, | ||
new BatchRegistrant { Email = "[email protected]", FirstName = "Abdullah", LastName = "Galib" } | ||
}; | ||
var registrantsInfo = await client.Webinars.PerformBatchRegistrationAsync(scheduledWebinar.Id, registrants, true).ConfigureAwait(false); | ||
await log.WriteLineAsync($"Registrants {registrantsInfo} added to meeting {scheduledWebinar.Id}").ConfigureAwait(false); | ||
|
||
var registrationAnswers1 = new[] | ||
{ | ||
new RegistrationAnswer { Title = "Are you happy?", Answer = "Yes" } | ||
|
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
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
Oops, something went wrong.