feat(work): 随官方更新会议相关接口模型

This commit is contained in:
Fu Diwei 2023-06-14 16:35:05 +08:00
parent c17043385e
commit 98e48e29b6
12 changed files with 562 additions and 47 deletions

View File

@ -11,8 +11,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
{
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/meeting/create 接口。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93627 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93706 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98148 </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@ -32,8 +32,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/meeting/update 接口。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93631 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93710 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98154 </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@ -53,8 +53,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/meeting/cancel 接口。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93630 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93709 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98153 </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@ -74,8 +74,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/meeting/get_info 接口。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93629 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93708 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98149 </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@ -95,8 +95,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// <summary>
/// <para>异步调用 [POST] /cgi-bin/meeting/get_user_meetingid 接口。</para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93628 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93707 </para>
/// <para>REF: https://developer.work.weixin.qq.com/document/path/98714 </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>

View File

@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/living/modify 接口的请求。</para>
@ -7,8 +9,21 @@
{
public static class Types
{
public class Attendee : CgibinMeetingCreateRequest.Types.Attendee
public class Attendee
{
/// <summary>
/// 获取或设置参与者成员账号列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("userid")]
[System.Text.Json.Serialization.JsonPropertyName("userid")]
public IList<string>? UserIdList { get; set; }
/// <summary>
/// 获取或设置设备序列号列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("device_sn")]
[System.Text.Json.Serialization.JsonPropertyName("device_sn")]
public IList<string>? DeviceSerialNumberList { get; set; }
}
}

View File

@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/meeting/cancel 接口的请求。</para>
@ -11,5 +11,12 @@
[Newtonsoft.Json.JsonProperty("meetingid")]
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
public string MeetingId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置周期性子会议 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_meetingid")]
[System.Text.Json.Serialization.JsonPropertyName("sub_meetingid")]
public string? SubMeetingId { get; set; } = string.Empty;
}
}

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
public static class Types
{
public class Attendee
public class Invitee
{
/// <summary>
/// 获取或设置参与者成员账号列表。
@ -26,6 +26,30 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public IList<string>? DeviceSerialNumberList { get; set; }
}
public class Guest
{
/// <summary>
/// 获取或设置国家地区代码。
/// </summary>
[Newtonsoft.Json.JsonProperty("area")]
[System.Text.Json.Serialization.JsonPropertyName("area")]
public string AreaCode { get; set; } = string.Empty;
/// <summary>
/// 获取或设置手机号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("phone_number")]
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
public string PhoneNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置会议嘉宾姓名。
/// </summary>
[Newtonsoft.Json.JsonProperty("guest_name")]
[System.Text.Json.Serialization.JsonPropertyName("guest_name")]
public string? GuestName { get; set; }
}
public class Settings
{
public static class Types
@ -86,6 +110,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
public int? EnterMuteMode { 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("mute_all")]
[System.Text.Json.Serialization.JsonPropertyName("mute_all")]
public bool? IsMuteAll { get; set; }
/// <summary>
/// 获取或设置是否开启屏幕水印。
/// </summary>
@ -93,6 +131,69 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[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("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("enable_interpreter")]
[System.Text.Json.Serialization.JsonPropertyName("enable_interpreter")]
public bool? EnableInterpreter { get; set; }
/// <summary>
/// 获取或设置是否允许成员上传文档。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_doc_upload_permission")]
[System.Text.Json.Serialization.JsonPropertyName("enable_doc_upload_permission")]
public bool? EnableDocumentUploadPermission { get; set; }
/// <summary>
/// 获取或设置是否激活报名。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_enroll")]
[System.Text.Json.Serialization.JsonPropertyName("enable_enroll")]
public bool? EnableEnroll { get; set; }
/// <summary>
/// 获取或设置是否开启主持人密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_host_key")]
[System.Text.Json.Serialization.JsonPropertyName("enable_host_key")]
public bool? EnableHostKey { get; set; }
/// <summary>
/// 获取或设置主持人密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("host_key")]
[System.Text.Json.Serialization.JsonPropertyName("host_key")]
public string? HostKey { get; set; }
/// <summary>
/// 获取或设置会议开始提醒范围。
/// </summary>
@ -133,6 +234,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("repeat_type")]
public int? RepeatType { get; set; }
/// <summary>
/// 获取或设置是否自定义重复设置。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_custom_repeat")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_custom_repeat")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
public bool? IsCustomRepeat { get; set; }
/// <summary>
/// 获取或设置结束重复类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_until_type")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_until_type")]
public int? RepeatUntilType { get; set; }
/// <summary>
/// 获取或设置周期会议限定次数。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_until_count")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_until_count")]
public int? RepeatUntilCount { get; set; }
/// <summary>
/// 获取或设置重复结束时间戳。
/// </summary>
@ -147,6 +271,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("repeat_interval")]
public int? RepeatInterval { get; set; }
/// <summary>
/// 获取或设置每周周几重复。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_day_of_week")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_day_of_week")]
public IList<int>? RepeatDaysOfWeek { get; set; }
/// <summary>
/// 获取或设置每月哪几天重复。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_day_of_month")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_day_of_month")]
public IList<int>? RepeatDaysOfMonth { get; set; }
/// <summary>
/// 获取或设置会议开始前多久提醒(单位:秒)。
/// </summary>
@ -208,9 +346,16 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// <summary>
/// 获取或设置参与者信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("attendees")]
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
public Types.Attendee? Attendee { get; set; }
[Newtonsoft.Json.JsonProperty("invitees")]
[System.Text.Json.Serialization.JsonPropertyName("invitees")]
public Types.Invitee? Invitee { get; set; }
/// <summary>
/// 获取或设置会议嘉宾列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("guests")]
[System.Text.Json.Serialization.JsonPropertyName("guests")]
public IList<Types.Guest>? GuestList { get; set; }
/// <summary>
/// 获取或设置会议设置信息。

View File

@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/meeting/get_info 接口的请求。</para>
@ -10,6 +10,13 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("meetingid")]
[System.Text.Json.Serialization.JsonPropertyName("meetingid")]
public string MeetingId { get; set; } = string.Empty;
public string? MeetingId { get; set; }
/// <summary>
/// 获取或设置入会码。
/// </summary>
[Newtonsoft.Json.JsonProperty("meeting_code")]
[System.Text.Json.Serialization.JsonPropertyName("meeting_code")]
public string? MeetingCode { get; set; }
}
}

View File

@ -141,6 +141,30 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public Types.Device[] DeviceList { get; set; } = default!;
}
public class Guest
{
/// <summary>
/// 获取或设置国家地区代码。
/// </summary>
[Newtonsoft.Json.JsonProperty("area")]
[System.Text.Json.Serialization.JsonPropertyName("area")]
public string AreaCode { get; set; } = default!;
/// <summary>
/// 获取或设置手机号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("phone_number")]
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
public string PhoneNumber { get; set; } = default!;
/// <summary>
/// 获取或设置会议嘉宾姓名。
/// </summary>
[Newtonsoft.Json.JsonProperty("guest_name")]
[System.Text.Json.Serialization.JsonPropertyName("guest_name")]
public string? GuestName { get; set; }
}
public class Settings
{
public static class Types
@ -166,6 +190,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
}
}
/// <summary>
/// 获取或设置是否开启入会密码。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_password")]
[System.Text.Json.Serialization.JsonPropertyName("need_password")]
public bool EnablePassword { get; set; }
/// <summary>
/// 获取或设置入会密码。
/// </summary>
@ -194,6 +225,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("allow_external_user")]
public bool AllowExternalUser { get; set; }
/// <summary>
/// 获取或设置成员入会时静音模式。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_enter_mute")]
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
public int EnterMuteMode { 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("mute_all")]
[System.Text.Json.Serialization.JsonPropertyName("mute_all")]
public bool IsMuteAll { get; set; }
/// <summary>
/// 获取或设置是否开启屏幕水印。
/// </summary>
@ -202,11 +254,67 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
public bool EnableScreenWatermark { get; set; }
/// <summary>
/// 获取或设置成员入会时静音模式。
/// 获取或设置水印样式。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_enter_mute")]
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
public int EnterMuteMode { get; set; }
[Newtonsoft.Json.JsonProperty("watermark_type")]
[System.Text.Json.Serialization.JsonPropertyName("watermark_type")]
public int WatermarkType { 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("participant_join_auto_record")]
[System.Text.Json.Serialization.JsonPropertyName("participant_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("enable_interpreter")]
[System.Text.Json.Serialization.JsonPropertyName("enable_interpreter")]
public bool EnableInterpreter { get; set; }
/// <summary>
/// 获取或设置是否允许成员上传文档。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_doc_upload_permission")]
[System.Text.Json.Serialization.JsonPropertyName("enable_doc_upload_permission")]
public bool EnableDocumentUploadPermission { get; set; }
/// <summary>
/// 获取或设置是否激活报名。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_enroll")]
[System.Text.Json.Serialization.JsonPropertyName("enable_enroll")]
public bool EnableEnroll { get; set; }
/// <summary>
/// 获取或设置是否开启主持人密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_host_key")]
[System.Text.Json.Serialization.JsonPropertyName("enable_host_key")]
public bool EnableHostKey { get; set; }
/// <summary>
/// 获取或设置主持人密钥。
/// </summary>
[Newtonsoft.Json.JsonProperty("host_key")]
[System.Text.Json.Serialization.JsonPropertyName("host_key")]
public string? HostKey { get; set; }
/// <summary>
/// 获取或设置会议开始提醒范围。
@ -222,6 +330,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
public Types.Host? Host { get; set; }
/// <summary>
/// 获取或设置会议当前主持人信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("current_hosts")]
[System.Text.Json.Serialization.JsonPropertyName("current_hosts")]
public Types.Host? CurrentHost { get; set; }
/// <summary>
/// 获取或设置会议联席主持人信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("co_hosts")]
[System.Text.Json.Serialization.JsonPropertyName("co_hosts")]
public Types.Host? CoHost { get; set; }
/// <summary>
/// 获取或设置响铃用户信息。
/// </summary>
@ -236,10 +358,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
/// 获取或设置是否重复会议。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_repeat")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_repeat")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
public bool? IsRepeat { get; set; }
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
public bool IsRepeat { get; set; }
/// <summary>
/// 获取或设置重复类型。
@ -248,6 +370,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("repeat_type")]
public int? RepeatType { get; set; }
/// <summary>
/// 获取或设置是否自定义重复设置。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_custom_repeat")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_custom_repeat")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
public bool IsCustomRepeat { get; set; }
/// <summary>
/// 获取或设置结束重复类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_until_type")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_until_type")]
public int? RepeatUntilType { get; set; }
/// <summary>
/// 获取或设置周期会议限定次数。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_until_count")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_until_count")]
public int? RepeatUntilCount { get; set; }
/// <summary>
/// 获取或设置重复结束时间戳。
/// </summary>
@ -262,6 +407,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("repeat_interval")]
public int? RepeatInterval { get; set; }
/// <summary>
/// 获取或设置每周周几重复。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_day_of_week")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_day_of_week")]
public int[]? RepeatDaysOfWeek { get; set; }
/// <summary>
/// 获取或设置每月哪几天重复。
/// </summary>
[Newtonsoft.Json.JsonProperty("repeat_day_of_month")]
[System.Text.Json.Serialization.JsonPropertyName("repeat_day_of_month")]
public int[]? RepeatDaysOfMonth { get; set; }
/// <summary>
/// 获取或设置会议开始前多久提醒(单位:秒)。
/// </summary>
@ -269,6 +428,37 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("remind_before")]
public int[]? RemindBeforeEventTimeList { get; set; }
}
public class SubMeeting
{
/// <summary>
/// 获取或设置子会议 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_meetingid")]
[System.Text.Json.Serialization.JsonPropertyName("sub_meetingid")]
public string SubMeetingId { get; set; } = default!;
/// <summary>
/// 获取或设置状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { 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>
@ -320,6 +510,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置会议类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("meeting_type")]
[System.Text.Json.Serialization.JsonPropertyName("meeting_type")]
public int MeetingType { get; set; }
/// <summary>
/// 获取或设置会议描述。
/// </summary>
@ -348,6 +545,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
public Types.Attendee Attendee { get; set; } = default!;
/// <summary>
/// 获取或设置会议嘉宾列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("guests")]
[System.Text.Json.Serialization.JsonPropertyName("guests")]
public Types.Guest[]? GuestList { get; set; }
/// <summary>
/// 获取或设置会议设置信息。
/// </summary>
@ -375,5 +579,42 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("meeting_link")]
[System.Text.Json.Serialization.JsonPropertyName("meeting_link")]
public string MeetingLink { get; set; } = default!;
/// <summary>
/// 获取或设置是否有投票。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_vote")]
[System.Text.Json.Serialization.JsonPropertyName("has_vote")]
public bool HasVote { get; set; }
/// <summary>
/// 获取或设置子会议列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_meetings")]
[System.Text.Json.Serialization.JsonPropertyName("sub_meetings")]
public Types.SubMeeting[]? SubMeetingList { get; set; }
/// <summary>
/// 获取或设置是否还有更多子会议特例。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more_sub_meeting")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("has_more_sub_meeting")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
public bool HasMoreSubMeeting { get; set; }
/// <summary>
/// 获取或设置剩余子会议场数。
/// </summary>
[Newtonsoft.Json.JsonProperty("remain_sub_meetings")]
[System.Text.Json.Serialization.JsonPropertyName("remain_sub_meetings")]
public int? RemainSubMeetingCount { get; set; }
/// <summary>
/// 获取或设置当前子会议 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("current_sub_meetingid")]
[System.Text.Json.Serialization.JsonPropertyName("current_sub_meetingid")]
public string? CurrentSubMeetingId { get; set; }
}
}

View File

@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/meeting/update 接口的请求。</para>
@ -7,7 +9,11 @@
{
public static class Types
{
public class Attendee : CgibinMeetingCreateRequest.Types.Attendee
public class Invitee : CgibinMeetingCreateRequest.Types.Invitee
{
}
public class Guest : CgibinMeetingCreateRequest.Types.Guest
{
}
@ -96,9 +102,16 @@
/// <summary>
/// 获取或设置参与者信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("attendees")]
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
public Types.Attendee? Attendee { get; set; }
[Newtonsoft.Json.JsonProperty("invitees")]
[System.Text.Json.Serialization.JsonPropertyName("invitees")]
public Types.Invitee? Invitee { get; set; }
/// <summary>
/// 获取或设置会议嘉宾列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("guests")]
[System.Text.Json.Serialization.JsonPropertyName("guests")]
public IList<Types.Guest>? GuestList { get; set; }
/// <summary>
/// 获取或设置会议设置信息。

View File

@ -1,3 +1,4 @@
{
"meetingid": "XXXXXXXXX"
{
"meetingid": "XXXXXXXXX",
"sub_meetingid": "sub_meetingid1111"
}

View File

@ -1,4 +1,4 @@
{
{
"admin_userid": "zhangsan",
"title": "新建会议",
"meeting_start": 1600000000,
@ -6,20 +6,37 @@
"description": "新建会议描述",
"location": "广州媒体港",
"agentid": 1000014,
"attendees": {
"invitees": {
"userid": [ "lisi", "wangwu" ]
},
"guests": [
{
"area": "86",
"phone_number": "135012938457",
"guest_name": "fifa"
}
],
"settings": {
"remind_scope": 1,
"password": "1234",
"enable_waiting_room": false,
"allow_enter_before_host": true,
"enable_enter_mute": 1,
"allow_unmute_self": true,
"mute_all": false,
"allow_external_user": false,
"enable_screen_watermark": false,
"watermark_type": 1,
"auto_record_type": "none",
"attendee_join_auto_record": false,
"enable_host_pause_auto_record": false,
"enable_interpreter": true,
"enable_enroll": true,
"enable_host_key": true,
"host_key": "meetinghostkey",
"hosts": {
"userid": [ "lisi", "wangwu" ]
},
"remind_scope": 1,
"ring_users": {
"userid": [ "zhangsan", "lis" ]
}
@ -28,8 +45,13 @@
"reminders": {
"is_repeat": 1,
"repeat_type": 0,
"is_custom_repeat": 1,
"repeat_until_type": 1,
"repeat_until_count": 10,
"repeat_until": 1606976813,
"repeat_interval": 1,
"repeat_day_of_week": [ 3, 7 ],
"repeat_day_of_month": [ 10, 21 ],
"remind_before": [ 0, 900 ]
}
}

View File

@ -1,3 +1,4 @@
{
"meetingid": "XXXXXXXXX"
{
"meetingid": "XXXXXXXXX",
"meeting_code": "meetingcodexxx"
}

View File

@ -9,6 +9,7 @@
"location": "广州媒体港",
"main_department": 1,
"status": 1,
"meeting_type": 1,
"attendees": {
"member": [
{
@ -49,15 +50,31 @@
},
"settings": {
"remind_scope": 4,
"need_password": true,
"password": "1234",
"enable_waiting_room": false,
"allow_enter_before_host": true,
"enable_enter_mute": 1,
"allow_unmute_self": true,
"allow_external_user": false,
"enable_screen_watermark": false,
"watermark_type": 1,
"auto_record_type": "none",
"participant_join_auto_record": false,
"enable_host_pause_auto_record": false,
"enable_doc_upload_permission": true,
"enable_enroll": true,
"enable_host_key": true,
"host_key": "meetinghostkey",
"hosts": {
"userid": [ "lisi", "wangwu" ]
},
"current_hosts": {
"userid": [ "wangwu", "lisi" ]
},
"co_hosts": {
"userid": [ "zhangsan", "lisi" ]
},
"ring_users": {
"userid": [ "zhangsan", "lis" ]
}
@ -66,10 +83,34 @@
"reminders": {
"is_repeat": 1,
"repeat_type": 0,
"repeat_until_type": 1,
"repeat_until_count": 10,
"repeat_until": 1606976813,
"repeat_interval": 1,
"remind_before": [ 5, 10 ]
"is_custom_repeat": 1,
"repeat_day_of_week": [ 3, 7 ],
"repeat_day_of_month": [ 10, 21 ],
"remind_before": [ 0, 900 ]
},
"meeting_code": "123456789",
"meeting_link": "https://wecomm.com/znigeot"
"meeting_link": "https://wecomm.com/znigeot",
"has_vote": true,
"has_more_sub_meeting": 1,
"remain_sub_meetings": 2,
"current_sub_meetingid": "cursubmeetingid",
"sub_meetings": [
{
"sub_meetingid": "sub_meetingid",
"status": 0,
"start_time": 16888888888,
"end_time": 179888888888
}
],
"guests": [
{
"area": "86",
"phone_number": "135123454321",
"guest_name": "lisi"
}
]
}

View File

@ -1,4 +1,4 @@
{
{
"meetingid": "hyxxx",
"title": "新建会议",
"meeting_start": 1600000000,
@ -6,20 +6,37 @@
"description": "新建会议描述",
"location": "广州媒体港",
"agentid": 1000014,
"attendees": {
"invitees": {
"userid": [ "lisi", "wangwu" ]
},
"guests": [
{
"area": "86",
"phone_number": "135012938457",
"guest_name": "fifa"
}
],
"settings": {
"remind_scope": 1,
"password": "1234",
"enable_waiting_room": false,
"allow_enter_before_host": true,
"enable_enter_mute": 1,
"allow_unmute_self": true,
"mute_all": false,
"allow_external_user": false,
"enable_screen_watermark": false,
"watermark_type": 1,
"auto_record_type": "none",
"attendee_join_auto_record": false,
"enable_host_pause_auto_record": false,
"enable_interpreter": true,
"enable_enroll": true,
"enable_host_key": true,
"host_key": "meetinghostkey",
"hosts": {
"userid": [ "lisi", "wangwu" ]
},
"remind_scope": 1,
"ring_users": {
"userid": [ "zhangsan", "lis" ]
}
@ -28,8 +45,13 @@
"reminders": {
"is_repeat": 1,
"repeat_type": 0,
"is_custom_repeat": 1,
"repeat_until_type": 1,
"repeat_until_count": 10,
"repeat_until": 1606976813,
"repeat_interval": 1,
"repeat_day_of_week": [ 3, 7 ],
"repeat_day_of_month": [ 10, 21 ],
"remind_before": [ 0, 900 ]
}
}