mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat: 新增网络研讨会相关接口
This commit is contained in:
parent
d835b701a8
commit
79ab95f76a
@ -983,5 +983,147 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingRoomsGetResponseStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Webinar
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/create 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98842 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarCreateResponse> ExecuteCgibinMeetingWebinarCreateAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarCreateRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "create")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarCreateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/update 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98843 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarUpdateResponse> ExecuteCgibinMeetingWebinarUpdateAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarUpdateRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "update")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarUpdateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/cancel 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98843 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarCancelResponse> ExecuteCgibinMeetingWebinarCancelAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarCancelRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "cancel")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/get 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98860 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarGetResponse> ExecuteCgibinMeetingWebinarGetAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/list_guest 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98871 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarListGuestResponse> ExecuteCgibinMeetingWebinarListGuestAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarListGuestRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "list_guest")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarListGuestResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/update_guest_list 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98872 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarUpdateGuestListResponse> ExecuteCgibinMeetingWebinarUpdateGuestListAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarUpdateGuestListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "update_guest_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarUpdateGuestListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/meeting/webinar/update_warm_up 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98882 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinMeetingWebinarUpdateWarmUpResponse> ExecuteCgibinMeetingWebinarUpdateWarmUpAsync(this WechatWorkClient client, Models.CgibinMeetingWebinarUpdateWarmUpRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "meeting", "webinar", "update_warm_up")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinMeetingWebinarUpdateWarmUpResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/cancel 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarCancelRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/cancel 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarCancelResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,222 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/create 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarCreateRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Host
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class MediaSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否入会时静音。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_enter_mute")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
|
||||
public bool? EnableEnterMute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许参会者取消静音。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_unmute_self")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_unmute_self")]
|
||||
public bool? AllowUnmuteSelf { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许嘉宾在主持人进会前加入会议。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_enter_before_host")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_enter_before_host")]
|
||||
public bool? AllowEnterBeforeHost { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启屏幕共享水印。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_screen_watermark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_screen_watermark")]
|
||||
public bool? EnableScreenWatermark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置水印样式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("watermark_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("watermark_type")]
|
||||
public int? WatermarkType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否仅企业内部成员可入会。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_external_user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_external_user")]
|
||||
public bool? AllowExternalUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自动会议录制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auto_record_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auto_record_type")]
|
||||
public string? AutoRecordType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否当有参会成员入会时立即开启云录制。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attendee_join_auto_record")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attendee_join_auto_record")]
|
||||
public bool? IsAttendeeJoinAutoRecord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许主持人暂停或者停止云录制。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_host_pause_auto_record")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_host_pause_auto_record")]
|
||||
public bool? EnableHostPauseAutoRecord { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("admin_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admin_userid")]
|
||||
public string AdminUserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主办方名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sponsor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sponsor")]
|
||||
public string? Sponsor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主持人列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public IList<Types.Host>? HostList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看限制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("admission_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admission_type")]
|
||||
public int AdmissionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启通过邀请链接自动成为嘉宾。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_guest_invite_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_guest_invite_link")]
|
||||
public bool? EnableGuestInviteLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒体参数配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_setting")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_setting")]
|
||||
public Types.MediaSettings? MediaSettings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启问答。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_qa")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_qa")]
|
||||
public bool? EnableQA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置聊天敏感词列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sensitive_words")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sensitive_words")]
|
||||
public IList<string>? SensitiveWordList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启人工审核。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_manual_check")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_manual_check")]
|
||||
public bool? EnableManualCheck { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启活动页。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("activity_page")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("activity_page")]
|
||||
public bool? EnableActivityPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置活动页展示已报名或已预约人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("display_number_of_attendees")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("display_number_of_attendees")]
|
||||
public int? DisplayNumberOfAttendeesType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许观众观看回放。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playback_for_audience")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playback_for_audience")]
|
||||
public bool? AllowPlaybackForAudience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启准备模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("preparation_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("preparation_mode")]
|
||||
public bool? EnablePreparationMode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/create 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarCreateResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meeting_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
|
||||
public string MeetingCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看限制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("admission_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admission_type")]
|
||||
public int AdmissionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众入会链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audience_join_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audience_join_link")]
|
||||
public string? AudienceJoinLinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置嘉宾入会链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guest_join_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guest_join_link")]
|
||||
public string? GuestJoinLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置人工审核链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("manual_check_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("manual_check_link")]
|
||||
public string? ManualCheckLinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置人工审核密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("manual_check_password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("manual_check_password")]
|
||||
public string? ManualCheckPassword { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarGetRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。与字段 <see cref="MeetingCode"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string? MeetingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会码。与字段 <see cref="MeetingId"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meeting_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
|
||||
public string? MeetingCode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,278 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarGetResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Host
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class MediaSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否入会时静音。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_enter_mute")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
|
||||
public bool EnableEnterMute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置允许参会者取消静音。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_unmute_self")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_unmute_self")]
|
||||
public bool AllowUnmuteSelf { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许嘉宾在主持人进会前加入会议。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_enter_before_host")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_enter_before_host")]
|
||||
public bool AllowEnterBeforeHost { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启屏幕共享水印。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_screen_watermark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_screen_watermark")]
|
||||
public bool EnableScreenWatermark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置水印样式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("watermark_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("watermark_type")]
|
||||
public int WatermarkType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否仅企业内部成员可入会。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_external_user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_external_user")]
|
||||
public bool AllowExternalUser { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自动会议录制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auto_record_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auto_record_type")]
|
||||
public string AutoRecordType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否当有参会成员入会时立即开启云录制。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attendee_join_auto_record")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attendee_join_auto_record")]
|
||||
public bool IsAttendeeJoinAutoRecord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许主持人暂停或者停止云录制。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_host_pause_auto_record")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_host_pause_auto_record")]
|
||||
public bool EnableHostPauseAutoRecord { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meeting_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
|
||||
public string MeetingCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主办方名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sponsor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sponsor")]
|
||||
public string Sponsor { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public string Status { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主持人列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public Types.Host[]? HostList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看限制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("admission_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admission_type")]
|
||||
public int AdmissionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启通过邀请链接自动成为嘉宾。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_guest_invite_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_guest_invite_link")]
|
||||
public bool EnableGuestInviteLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众入会链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audience_join_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audience_join_link")]
|
||||
public string? AudienceJoinLinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置嘉宾入会链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guest_join_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guest_join_link")]
|
||||
public string? GuestJoinLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置人工审核链接 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("manual_check_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("manual_check_link")]
|
||||
public string? ManualCheckLinkUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置人工审核密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("manual_check_password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("manual_check_password")]
|
||||
public string? ManualCheckPassword { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒体参数配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_setting")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_setting")]
|
||||
public Types.MediaSettings MediaSettings { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启问答。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_qa")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_qa")]
|
||||
public bool EnableQA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启活动页。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("activity_page")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("activity_page")]
|
||||
public bool EnableActivityPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置活动页展示已报名或已预约人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("display_number_of_attendees")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("display_number_of_attendees")]
|
||||
public int DisplayNumberOfAttendeesType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许观众观看回放。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playback_for_audience")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playback_for_audience")]
|
||||
public bool AllowPlaybackForAudience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回放地址 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playback_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playback_url")]
|
||||
public string? PlaybackUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启准备模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("preparation_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("preparation_mode")]
|
||||
public bool EnablePreparationMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置暖场图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("warm_up_picture")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("warm_up_picture")]
|
||||
public string? WarmUpPictureUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置暖场视频 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("warm_up_video")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("warm_up_video")]
|
||||
public string? WarmUpVideoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许参会者在暖场中邀请成员。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_attendees_invite_others")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_attendees_invite_others")]
|
||||
public bool AllowAttendeesInviteOthers { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/list_guest 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarListGuestRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。与字段 <see cref="MeetingCode"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string? MeetingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会码。与字段 <see cref="MeetingId"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meeting_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
|
||||
public string? MeetingCode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/list_guest 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarListGuestResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Guest : CgibinMeetingWebinarUpdateGuestListRequest.Types.Guest
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置嘉宾列表。。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guests")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guests")]
|
||||
public Types.Guest[] GuestList { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update_guest_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateGuestListRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Guest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置嘉宾类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guest_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guest_type")]
|
||||
public int GuestType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置国家地区代码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("area")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("area")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string? AreaCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone_number")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
|
||||
public string? PhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子邮箱。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("email")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
||||
public string? Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议嘉宾姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guest_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guest_name")]
|
||||
public string? GuestName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置嘉宾列表。。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("guests")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("guests")]
|
||||
public IList<Types.Guest> GuestList { get; set; } = new List<Types.Guest>();
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update_guest_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateGuestListResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Host : CgibinMeetingWebinarCreateRequest.Types.Host
|
||||
{
|
||||
}
|
||||
|
||||
public class MediaSettings : CgibinMeetingWebinarCreateRequest.Types.MediaSettings
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主办方名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sponsor")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sponsor")]
|
||||
public string? Sponsor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主持人列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public IList<Types.Host>? HostList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看限制类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("admission_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admission_type")]
|
||||
public int AdmissionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置观众观看密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string? CoverUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启通过邀请链接自动成为嘉宾。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_guest_invite_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_guest_invite_link")]
|
||||
public bool? EnableGuestInviteLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置媒体参数配置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_setting")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_setting")]
|
||||
public Types.MediaSettings? MediaSettings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启问答。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_qa")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_qa")]
|
||||
public bool? EnableQA { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置聊天敏感词列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sensitive_words")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sensitive_words")]
|
||||
public IList<string>? SensitiveWordList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启人工审核。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_manual_check")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_manual_check")]
|
||||
public bool? EnableManualCheck { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启活动页。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("activity_page")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("activity_page")]
|
||||
public bool? EnableActivityPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置活动页展示已报名或已预约人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("display_number_of_attendees")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("display_number_of_attendees")]
|
||||
public int? DisplayNumberOfAttendeesType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许观众观看回放。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("playback_for_audience")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("playback_for_audience")]
|
||||
public bool? AllowPlaybackForAudience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启准备模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("preparation_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("preparation_mode")]
|
||||
public bool? EnablePreparationMode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update_warm_up 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateWarmUpRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("meetingid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
|
||||
public string MeetingId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置暖场图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("warm_up_picture")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("warm_up_picture")]
|
||||
public string? WarmUpPictureUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置暖场视频 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("warm_up_video")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("warm_up_video")]
|
||||
public string? WarmUpVideoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否允许参会者在暖场中邀请成员。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allow_attendees_invite_others")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_attendees_invite_others")]
|
||||
public bool? AllowAttendeesInviteOthers { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/meeting/webinar/update_warm_up 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinMeetingWebinarUpdateWarmUpResponse : WechatWorkResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"meetingid": "MEETINGID"
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
{
|
||||
"admin_userid": "USERID",
|
||||
"title": "TITLE",
|
||||
"sponsor": "SPONSOR",
|
||||
"start_time": "166666666",
|
||||
"end_time": "177777777",
|
||||
"admission_type": 0,
|
||||
"hosts": [
|
||||
{
|
||||
"userid": "USERID"
|
||||
}
|
||||
],
|
||||
"password": "PASSWORD",
|
||||
"cover_url": "URL",
|
||||
"description": "description",
|
||||
"enable_guest_invite_link": false,
|
||||
"media_setting": {
|
||||
"enable_enter_mute": false,
|
||||
"allow_unmute_self": false,
|
||||
"allow_enter_before_host": false,
|
||||
"enable_screen_watermark": false,
|
||||
"watermark_type": 0,
|
||||
"allow_external_user": false,
|
||||
"auto_record_type": "none",
|
||||
"attendee_join_auto_record": false,
|
||||
"enable_host_pause_auto_record": false
|
||||
},
|
||||
"enable_qa": false,
|
||||
"sensitive_words": [
|
||||
"WORD1"
|
||||
],
|
||||
"enable_manual_check": false,
|
||||
"activity_page": false,
|
||||
"display_number_of_attendees": 0,
|
||||
"playback_for_audience": true,
|
||||
"preparation_mode": false
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"title": "TITLE",
|
||||
"meetingid": "MEETINGID",
|
||||
"meeting_code": "CODE",
|
||||
"start_time": "166666666",
|
||||
"end_time": "177777777",
|
||||
"admission_type": 0,
|
||||
"password": "PASSWORD",
|
||||
"audience_join_link": "LINK",
|
||||
"guest_join_link": "LINK",
|
||||
"manual_check_link": "LINK",
|
||||
"manual_check_password": "PASSWORD"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"meetingid": "MEETINGID",
|
||||
"meeting_code": "MEETINGCODE"
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
{
|
||||
"meetingid": "MEETINGID",
|
||||
"title": "TITLE",
|
||||
"sponsor": "SPONSOR",
|
||||
"start_time": "166666666",
|
||||
"end_time": "177777777",
|
||||
"admission_type": 0,
|
||||
"hosts": [
|
||||
{
|
||||
"userid": "USERID"
|
||||
}
|
||||
],
|
||||
"password": "PASSWORD",
|
||||
"cover_url": "URL",
|
||||
"description": "description",
|
||||
"enable_guest_invite_link": false,
|
||||
"audience_join_link": "LINK",
|
||||
"guest_join_link": "LINK",
|
||||
"media_setting": {
|
||||
"enable_enter_mute": false,
|
||||
"allow_unmute_self": false,
|
||||
"allow_enter_before_host": false,
|
||||
"enable_screen_watermark": false,
|
||||
"watermark_type": 0,
|
||||
"allow_external_user": false,
|
||||
"auto_record_type": "none",
|
||||
"attendee_join_auto_record": false,
|
||||
"enable_host_pause_auto_record": false
|
||||
},
|
||||
"enable_qa": false,
|
||||
"manual_check_link": "LINK",
|
||||
"manual_check_password": "PASSWORD",
|
||||
"activity_page": false,
|
||||
"display_number_of_attendees": 0,
|
||||
"playback_for_audience": true,
|
||||
"playback_url": "URL",
|
||||
"preparation_mode": false,
|
||||
"warm_up_picture": "URL",
|
||||
"warm_up_video": "URL",
|
||||
"allow_attendees_invite_others": false
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"meetingid": "MEETINGID",
|
||||
"meeting_code": "CODE"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"guests": [
|
||||
{
|
||||
"guest_type": 1,
|
||||
"userid": "USERID",
|
||||
"area": "86",
|
||||
"phone_number": "15900000001",
|
||||
"guest_name": "NAME",
|
||||
"email": ""
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
{
|
||||
"meetingid": "MEETINGID",
|
||||
"guests": [
|
||||
{
|
||||
"guest_type": 1,
|
||||
"userid": "USERID",
|
||||
"area": "86",
|
||||
"phone_number": "13333333333",
|
||||
"guest_name": "NAME",
|
||||
"email": "xxxxx@yy.com"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
{
|
||||
"meetingid": "MEETINGID",
|
||||
"title": "TITLE",
|
||||
"sponsor": "SPONSOR",
|
||||
"start_time": "166666666",
|
||||
"end_time": "177777777",
|
||||
"admission_type": 0,
|
||||
"hosts": [
|
||||
{
|
||||
"userid": "USERID"
|
||||
}
|
||||
],
|
||||
"password": "PASSWORD",
|
||||
"cover_url": "URL",
|
||||
"description": "description",
|
||||
"enable_guest_invite_link": false,
|
||||
"media_setting": {
|
||||
"enable_enter_mute": false,
|
||||
"allow_unmute_self": false,
|
||||
"allow_enter_before_host": false,
|
||||
"enable_screen_watermark": false,
|
||||
"watermark_type": 0,
|
||||
"allow_external_user": false,
|
||||
"auto_record_type": "none",
|
||||
"attendee_join_auto_record": false,
|
||||
"enable_host_pause_auto_record": false
|
||||
},
|
||||
"enable_qa": false,
|
||||
"sensitive_words": [
|
||||
"WORD1"
|
||||
],
|
||||
"enable_manual_check": false,
|
||||
"activity_page": false,
|
||||
"display_number_of_attendees": 0,
|
||||
"playback_for_audience": true,
|
||||
"preparation_mode": false
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"meetingid": "MEETINGID1",
|
||||
"warm_up_picture": "https://xxxxxx.cos.myqcloud.com/flower.png",
|
||||
"warm_up_video": "https://xxxxxx.cos.myqcloud.com/cat.mp4",
|
||||
"allow_attendees_invite_others": true
|
||||
}
|
Loading…
Reference in New Issue
Block a user