using System.Collections.Generic;

namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
    /// <summary>
    /// <para>表示 [POST] /componenttcb/batchshareenv 接口的请求。</para>
    /// </summary>
    public class ComponentTcbBatchShareEnvironmentRequest : WechatApiRequest, IInferable<ComponentTcbBatchShareEnvironmentRequest, ComponentTcbBatchShareEnvironmentResponse>
    {
        public static class Types
        {
            public class Data
            {
                /// <summary>
                /// 获取或设置环境 ID。
                /// </summary>
                [Newtonsoft.Json.JsonProperty("env")]
                [System.Text.Json.Serialization.JsonPropertyName("env")]
                public string EnvironmentId { get; set; } = string.Empty;

                /// <summary>
                /// 获取或设置 AppId 列表。
                /// </summary>
                [Newtonsoft.Json.JsonProperty("appids")]
                [System.Text.Json.Serialization.JsonPropertyName("appids")]
                public IList<string> AppIdList { get; set; } = new List<string>();
            }
        }

        /// <summary>
        /// 获取或设置第三方平台 AccessToken。
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        [System.Text.Json.Serialization.JsonIgnore]
        public string ComponentAccessToken { get; set; } = string.Empty;

        /// <summary>
        /// 获取或设置数据列表。
        /// </summary>
        [Newtonsoft.Json.JsonProperty("data")]
        [System.Text.Json.Serialization.JsonPropertyName("data")]
        public IList<Types.Data> DataList { get; set; } = new List<Types.Data>();
    }
}
