-
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.
Merge branch 'release/0.8.0' into main
- Loading branch information
Showing
49 changed files
with
3,268 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using System.IO; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using ZoomNet.Models; | ||
|
||
namespace ZoomNet.IntegrationTests.Tests | ||
{ | ||
public class Dashboards : IIntegrationTest | ||
{ | ||
public async Task RunAsync(string userId, IZoomClient client, TextWriter log, CancellationToken cancellationToken) | ||
{ | ||
if (cancellationToken.IsCancellationRequested) return; | ||
|
||
await log.WriteLineAsync("\n***** DASHBOARDS *****\n").ConfigureAwait(false); | ||
|
||
// GET ALL THE MEETINGS | ||
var pastMeetingsStats = await client.Dashboards.GetAllMeetingsAsync(DateTime.UtcNow.AddMonths(-1), DateTime.UtcNow, DashboardMeetingType.Past, 100, null, cancellationToken).ConfigureAwait(false); | ||
await log.WriteLineAsync($"There are {pastMeetingsStats.TotalRecords} meetings in the last month").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
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
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,39 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Details of participant feedback on Zoom meetings client. | ||
/// </summary> | ||
public class ClientFeedbackDetail | ||
{ | ||
/// <summary> | ||
/// Gets or sets the participant's name. | ||
/// </summary> | ||
/// <value>The participant's name.</value> | ||
[JsonProperty(PropertyName = "participant_name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the meeting id. | ||
/// </summary> | ||
/// <value>The meeting id.</value> | ||
[JsonProperty(PropertyName = "meeting_id")] | ||
public string MeetingId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the time the feedback was submitted by the participant. | ||
/// </summary> | ||
/// <value>The time the feedback was submitted by the participant.</value> | ||
[JsonProperty(PropertyName = "time")] | ||
public DateTime Time { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the participant's email address. | ||
/// </summary> | ||
/// <value>The participants email.</value> | ||
[JsonProperty(PropertyName = "email")] | ||
public string Email { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Metrics for a feedback item. | ||
/// </summary> | ||
public class ClientFeedbackMetrics | ||
{ | ||
/// <summary> | ||
/// Gets or sets the feedback id. | ||
/// </summary> | ||
/// <value>The feedback id.</value> | ||
[JsonProperty(PropertyName = "feedback_id")] | ||
public string FeedbackId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the feedback name. | ||
/// </summary> | ||
/// <value>The feedback name.</value> | ||
[JsonProperty(PropertyName = "feedback_name")] | ||
public string FeebackName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the participant count. | ||
/// </summary> | ||
/// <value>The number of participants that upvoted the feedback.</value> | ||
[JsonProperty(PropertyName = "participants_count")] | ||
public int ParticipantsCount { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Report with client feedback metrics for a given range. | ||
/// </summary> | ||
public class ClientFeedbackMetricsReport | ||
{ | ||
/// <summary> | ||
/// Gets or sets the start date for this report. | ||
/// </summary> | ||
/// <value>The start date for this report.</value> | ||
[JsonProperty(PropertyName = "from")] | ||
public DateTime From { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the end date for this report. | ||
/// </summary> | ||
/// <value>The end date for this report.</value> | ||
[JsonProperty(PropertyName = "to")] | ||
public DateTime To { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the number of all records available across pages. | ||
/// </summary> | ||
/// <value>The number of all records available across pages.</value> | ||
[JsonProperty(PropertyName = "total_records")] | ||
public int TotalRecords { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of client feedback metrics. | ||
/// </summary> | ||
/// <value>The collection of client feedback metrics.</value> | ||
[JsonProperty(PropertyName = "client_feedbacks")] | ||
public ClientFeedbackMetrics[] ClientFeedbacks { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Metrics for a client satisfaction item. | ||
/// </summary> | ||
public class ClientSatisfactionMetrics | ||
{ | ||
/// <summary> | ||
/// Gets or sets the date of the report. | ||
/// </summary> | ||
/// <value>The date of the report.</value> | ||
[JsonProperty(PropertyName = "date")] | ||
public DateTime Date { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the satisfaction percentage. <br/> | ||
/// The satisfaction percentage is calculated as `(good_count + none_count)` / `total_count`. | ||
/// </summary> | ||
/// <value>The satisfaction percentage.</value> | ||
[JsonProperty(PropertyName = "satisfaction_percent")] | ||
public long SatisfactionPercent { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the total number of "thumbs up" received for this meeting. | ||
/// </summary> | ||
/// <value>The total number of "thumbs up" received for this meeting.</value> | ||
[JsonProperty(PropertyName = "good_count")] | ||
public int GoodCount { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the total number of "thumbs down" received for this meeting. | ||
/// </summary> | ||
/// <value>The total number of "thumbs down" received for this meeting.</value> | ||
[JsonProperty(PropertyName = "not_good_count")] | ||
public int NotGoodCount { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the total number of attendees who didn't submit any response (neither thumbs up nor thumbs down). | ||
/// </summary> | ||
/// <value>The total number of attendees who didn't submit any response (neither thumbs up nor thumbs down).</value> | ||
[JsonProperty(PropertyName = "none_count")] | ||
public int NoneCount { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Report on client statisfaction feedback. | ||
/// </summary> | ||
public class ClientSatisfactionReport | ||
{ | ||
/// <summary> | ||
/// Gets or sets the start date for this report. | ||
/// </summary> | ||
/// <value>The start date for this report.</value> | ||
[JsonProperty(PropertyName = "from")] | ||
public DateTime From { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the end date for this report. | ||
/// </summary> | ||
/// <value>The end date for this report.</value> | ||
[JsonProperty(PropertyName = "to")] | ||
public DateTime To { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the number of all records available across pages. | ||
/// </summary> | ||
/// <value>The number of all records available across pages.</value> | ||
[JsonProperty(PropertyName = "total_records")] | ||
public int TotalRecords { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the collection of client feedback metrics. | ||
/// </summary> | ||
/// <value>The collection of client feedback metrics.</value> | ||
[JsonProperty(PropertyName = "client_satisfaction")] | ||
public ClientSatisfactionMetrics[] ClientSatisfactions { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ZoomNet.Models | ||
{ | ||
/// <summary> | ||
/// Metrics for the CRC port usage. | ||
/// </summary> | ||
public class CrcPortMetrics | ||
{ | ||
/// <summary> | ||
/// Gets or sets the start date for this report. | ||
/// </summary> | ||
/// <value>The start date for this report.</value> | ||
[JsonProperty(PropertyName = "from")] | ||
public DateTime From { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the end date for this report. | ||
/// </summary> | ||
/// <value>The end date for this report.</value> | ||
[JsonProperty(PropertyName = "to")] | ||
public DateTime To { get; set; } | ||
} | ||
} |
Oops, something went wrong.