mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(work): 随官方更新会议相关接口模型
This commit is contained in:
parent
cf7c77b246
commit
3674786ceb
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.meeting_change 事件的数据。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93651 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93704 </para>
|
||||
/// </summary>
|
||||
public class MeetingChangeEvent : WechatWorkEvent, WechatWorkEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ChangeType")]
|
||||
public string ActionType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("MeetingId")]
|
||||
public string MeetingId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -119,7 +119,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Option
|
||||
public class Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置入会密码。
|
||||
@ -149,13 +149,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_enter_before_host")]
|
||||
public bool? AllowEnterBeforeHost { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置限制成员入会模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enter_restraint")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enter_restraint")]
|
||||
public int? EnterRestraintMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启屏幕水印。
|
||||
/// </summary>
|
||||
@ -164,13 +157,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public bool? EnableScreenWatermark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员入会时是否静音。
|
||||
/// 获取或设置限制成员入会模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enter_restraint")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enter_restraint")]
|
||||
public int? EnterRestraintMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成员入会时静音模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_enter_mute")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? EnableEnterMute { get; set; }
|
||||
public int? EnterMuteMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始提醒范围。
|
||||
@ -213,7 +211,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("option")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("option")]
|
||||
public Types.Option? Option { get; set; }
|
||||
public Types.Settings? Settings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主持人信息。
|
||||
|
@ -18,13 +18,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者外部联系人账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("external_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("external_userid")]
|
||||
public IList<string>? ExternalUserIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设备序列号列表。
|
||||
/// </summary>
|
||||
@ -32,14 +25,143 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device_sn")]
|
||||
public IList<string>? DeviceSerialNumberList { get; set; }
|
||||
}
|
||||
|
||||
public class Settings
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Host
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业成员的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
}
|
||||
|
||||
public class RingUser
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业成员的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public IList<string>? UserIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启等候室。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_waiting_room")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_waiting_room")]
|
||||
public bool? EnableWaitingRoom { 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("allow_external_user")]
|
||||
[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("enable_screen_watermark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_screen_watermark")]
|
||||
public bool? EnableScreenWatermark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始提醒范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_scope")]
|
||||
public int? RemindScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主持人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public Types.Host? Host { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置响铃用户信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ring_users")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ring_users")]
|
||||
public Types.RingUser? RingUser { get; set; }
|
||||
}
|
||||
|
||||
public class Reminder
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否重复会议。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_repeat")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_repeat")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsRepeat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_type")]
|
||||
public int? RepeatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_until")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_until")]
|
||||
public long? RepeatUntilTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复间隔。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_interval")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_interval")]
|
||||
public int? RepeatInterval { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始前多久提醒(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_before")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_before")]
|
||||
public IList<int>? RemindBeforeEventTimeList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起者成员账号。
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("creator_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("creator_userid")]
|
||||
public string CreatorUserId { get; set; } = string.Empty;
|
||||
[Newtonsoft.Json.JsonProperty("admin_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admin_userid")]
|
||||
public string AdminUserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议标题。
|
||||
@ -62,13 +184,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_duration")]
|
||||
public int Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议描述。
|
||||
/// </summary>
|
||||
@ -77,11 +192,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始前多久提醒(单位:秒)。
|
||||
/// 获取或设置会议地点。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_time")]
|
||||
public int? RemindBeforeEventTime { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("location")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public string? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cal_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cal_id")]
|
||||
public string? CalendarId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者信息。
|
||||
@ -90,6 +212,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
|
||||
public Types.Attendee? Attendee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议设置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("settings")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("settings")]
|
||||
public Types.Settings? Settings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议提醒信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reminders")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reminders")]
|
||||
public Types.Reminder? Reminder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方安装的应用 ID。
|
||||
/// </summary>
|
||||
|
@ -31,14 +31,14 @@
|
||||
public class ExternalUser
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置参与者外部联系人账号。
|
||||
/// 获取或设置外部联系人临时 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("external_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("external_userid")]
|
||||
public string ExternalUserId { get; set; } = default!;
|
||||
[Newtonsoft.Json.JsonProperty("tmp_external_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tmp_external_userid")]
|
||||
public string TempExternalUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者与会状态。
|
||||
/// 获取或设置外部联系人与会状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
@ -71,10 +71,10 @@
|
||||
public Types.User[] UserList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者外部联系人列表。
|
||||
/// 获取或设置外部联系人列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("external_user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("external_user")]
|
||||
[Newtonsoft.Json.JsonProperty("tmp_external_user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tmp_external_user")]
|
||||
public Types.ExternalUser[] ExternalUserList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
@ -84,6 +84,135 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("device")]
|
||||
public Types.Device[] DeviceList { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Settings
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Host
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业成员的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string[]? UserIdList { get; set; }
|
||||
}
|
||||
|
||||
public class RingUser
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业成员的 UserId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userids")]
|
||||
public string[]? UserIdList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置入会密码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("password")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("password")]
|
||||
public string? Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启等候室。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_waiting_room")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_waiting_room")]
|
||||
public bool EnableWaitingRoom { 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("allow_external_user")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allow_external_user")]
|
||||
public bool AllowExternalUser { 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("enable_enter_mute")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_enter_mute")]
|
||||
public int EnterMuteMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始提醒范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_scope")]
|
||||
public int? RemindScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主持人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public Types.Host? Host { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置响铃用户信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ring_users")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ring_users")]
|
||||
public Types.RingUser? RingUser { get; set; }
|
||||
}
|
||||
|
||||
public class Reminder
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否重复会议。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_repeat")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_repeat")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsRepeat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_type")]
|
||||
public int? RepeatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_until")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_until")]
|
||||
public long? RepeatUntilTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置重复间隔。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("repeat_interval")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("repeat_interval")]
|
||||
public int? RepeatInterval { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始前多久提醒(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_before")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_before")]
|
||||
public int[]? RemindBeforeEventTimeList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -94,18 +223,18 @@
|
||||
public string MeetingId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起者成员账号。
|
||||
/// 获取或设置管理员成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("creator_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("creator_userid")]
|
||||
public string CreatorUserId { get; set; } = default!;
|
||||
[Newtonsoft.Json.JsonProperty("admin_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("admin_userid")]
|
||||
public string AdminUserId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起者所在主部门 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("main_department")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("main_department")]
|
||||
public long? CreatorMainDepartmentId { get; set; }
|
||||
public long? AdminMainDepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议标题。
|
||||
@ -128,27 +257,6 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_duration")]
|
||||
public int Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议预约开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reserve_meeting_start")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reserve_meeting_start")]
|
||||
public long ReserveStartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议预约持续时长(单位:秒)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reserve_meeting_duration")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reserve_meeting_duration")]
|
||||
public int ReserveDuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议状态。
|
||||
/// </summary>
|
||||
@ -164,11 +272,18 @@
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始前多久提醒(单位:秒)。
|
||||
/// 获取或设置会议地点。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_time")]
|
||||
public int RemindBeforeEventTime { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("location")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public string? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cal_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cal_id")]
|
||||
public string? CalendarId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者信息。
|
||||
@ -176,5 +291,19 @@
|
||||
[Newtonsoft.Json.JsonProperty("attendees")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
|
||||
public Types.Attendee Attendee { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议设置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("settings")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("settings")]
|
||||
public Types.Settings Settings { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议提醒信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reminders")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reminders")]
|
||||
public Types.Reminder? Reminder { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,38 @@
|
||||
public class Attendee : CgibinMeetingCreateRequest.Types.Attendee
|
||||
{
|
||||
}
|
||||
|
||||
public class Settings : CgibinMeetingCreateRequest.Types.Settings
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Host : CgibinMeetingCreateRequest.Types.Settings.Types.Host
|
||||
{
|
||||
}
|
||||
|
||||
public class RingUser : CgibinMeetingCreateRequest.Types.Settings.Types.RingUser
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议主持人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hosts")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hosts")]
|
||||
public new Types.Host? Host { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置响铃用户信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ring_users")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ring_users")]
|
||||
public new Types.RingUser? RingUser { get; set; }
|
||||
}
|
||||
|
||||
public class Reminder : CgibinMeetingCreateRequest.Types.Reminder
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -40,13 +72,6 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("meeting_duration")]
|
||||
public int? Duration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议描述。
|
||||
/// </summary>
|
||||
@ -55,11 +80,18 @@
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议开始前多久提醒(单位:秒)。
|
||||
/// 获取或设置会议地点。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remind_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remind_time")]
|
||||
public int? RemindBeforeEventTime { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("location")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("location")]
|
||||
public string? Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置日历 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cal_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cal_id")]
|
||||
public string? CalendarId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与者信息。
|
||||
@ -67,5 +99,26 @@
|
||||
[Newtonsoft.Json.JsonProperty("attendees")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attendees")]
|
||||
public Types.Attendee? Attendee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议设置信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("settings")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("settings")]
|
||||
public Types.Settings? Settings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置会议提醒信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reminders")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reminders")]
|
||||
public Types.Reminder? Reminder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方安装的应用 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("agentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("agentid")]
|
||||
public int? AgentId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
<xml>
|
||||
<ToUserName><![CDATA[toUser]]></ToUserName>
|
||||
<FromUserName><![CDATA[fromUser]]></FromUserName>
|
||||
<CreateTime>1348831860</CreateTime>
|
||||
<MsgType><![CDATA[event]]></MsgType>
|
||||
<Event><![CDATA[meeting_change]]></Event>
|
||||
<ChangeType><![CDATA[modify_meeting]]></ChangeType>
|
||||
<MeetingId><![CDATA[wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA]]></MeetingId>
|
||||
</xml>
|
@ -1,15 +1,35 @@
|
||||
{
|
||||
"creator_userid": "zhangsan",
|
||||
"admin_userid": "zhangsan",
|
||||
"title": "新建会议",
|
||||
"meeting_start": 1600000000,
|
||||
"meeting_duration": 3600,
|
||||
"description": "新建会议描述",
|
||||
"type": 1,
|
||||
"remind_time": 60,
|
||||
"location": "广州媒体港",
|
||||
"agentid": 1000014,
|
||||
"attendees": {
|
||||
"userid": ["lisi", "wangwu"],
|
||||
"external_userid": ["woabc", "woced"],
|
||||
"device_sn": ["devsn1", "devsn2"]
|
||||
"userid": ["lisi", "wangwu"]
|
||||
},
|
||||
"settings": {
|
||||
"remind_scope": 1,
|
||||
"password": "1234",
|
||||
"enable_waiting_room": false,
|
||||
"allow_enter_before_host": true,
|
||||
"enable_enter_mute": 1,
|
||||
"allow_external_user": false,
|
||||
"enable_screen_watermark": false,
|
||||
"hosts": {
|
||||
"userid": ["lisi", "wangwu"]
|
||||
},
|
||||
"ring_users": {
|
||||
"userid": ["zhangsan", "lis"]
|
||||
}
|
||||
},
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"reminders": {
|
||||
"is_repeat": 1,
|
||||
"repeat_type": 0,
|
||||
"repeat_until": 1606976813,
|
||||
"repeat_interval": 1,
|
||||
"remind_before": [0, 900]
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,14 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"creator_userid": "zhangsan",
|
||||
"admin_userid": "zhangsan",
|
||||
"title": "title",
|
||||
"reserve_meeting_start": 1600000000,
|
||||
"reserve_meeting_duration": 1600003600,
|
||||
"meeting_start": 1600000007,
|
||||
"meeting_duration": 1800,
|
||||
"description": "test meeting description",
|
||||
"location": "广州媒体港",
|
||||
"main_department": 1,
|
||||
"type": 1,
|
||||
"status": 1,
|
||||
"remind_time": 60,
|
||||
"attendees": {
|
||||
"member": [
|
||||
{
|
||||
@ -23,25 +20,38 @@
|
||||
"status": 2
|
||||
}
|
||||
],
|
||||
"external_user": [
|
||||
"tmp_external_user": [
|
||||
{
|
||||
"external_userid": "woabc",
|
||||
"tmp_external_userid": "woabc",
|
||||
"status": 3
|
||||
},
|
||||
{
|
||||
"external_userid": "woefd",
|
||||
"tmp_external_userid": "woefd",
|
||||
"status": 4
|
||||
}
|
||||
],
|
||||
"device": [
|
||||
{
|
||||
"device_sn": "devicesn1",
|
||||
"status": 5
|
||||
},
|
||||
{
|
||||
"device_sn": "devicesn1",
|
||||
"status": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"settings": {
|
||||
"remind_scope": 4,
|
||||
"password": "1234",
|
||||
"enable_waiting_room": false,
|
||||
"allow_enter_before_host": true,
|
||||
"enable_enter_mute": 1,
|
||||
"allow_external_user": false,
|
||||
"enable_screen_watermark": false,
|
||||
"hosts": {
|
||||
"userid": ["lisi", "wangwu"]
|
||||
},
|
||||
"ring_users": {
|
||||
"userid": ["zhangsan", "lis"]
|
||||
}
|
||||
},
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"reminders": {
|
||||
"is_repeat": 1,
|
||||
"repeat_type": 0,
|
||||
"repeat_until": 1606976813,
|
||||
"repeat_interval": 1,
|
||||
"remind_before": [5, 10]
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,35 @@
|
||||
{
|
||||
"meetingid": "XXXXXXXXX",
|
||||
"title": "新需求",
|
||||
"meetingid": "hyxxx",
|
||||
"title": "新建会议",
|
||||
"meeting_start": 1600000000,
|
||||
"meeting_duration": 10000,
|
||||
"description": "test",
|
||||
"type": 1,
|
||||
"remind_time": 60,
|
||||
"meeting_duration": 3600,
|
||||
"description": "新建会议描述",
|
||||
"location": "广州媒体港",
|
||||
"agentid": 1000014,
|
||||
"attendees": {
|
||||
"userid": ["lisi", "wangwu"],
|
||||
"external_userid": ["woabc", "woced"],
|
||||
"device_sn": ["devsn1", "devsn2"]
|
||||
"userid": ["lisi", "wangwu"]
|
||||
},
|
||||
"settings": {
|
||||
"remind_scope": 1,
|
||||
"password": "1234",
|
||||
"enable_waiting_room": false,
|
||||
"allow_enter_before_host": true,
|
||||
"enable_enter_mute": 1,
|
||||
"allow_external_user": false,
|
||||
"enable_screen_watermark": false,
|
||||
"hosts": {
|
||||
"userid": ["lisi", "wangwu"]
|
||||
},
|
||||
"ring_users": {
|
||||
"userid": ["zhangsan", "lis"]
|
||||
}
|
||||
},
|
||||
"cal_id": "wcjgewCwAAqeJcPI1d8Pwbjt7nttzAAA",
|
||||
"reminders": {
|
||||
"is_repeat": 1,
|
||||
"repeat_type": 0,
|
||||
"repeat_until": 1606976813,
|
||||
"repeat_interval": 1,
|
||||
"remind_before": [0, 900]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user