| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 | using System.Collections.Generic;using LC.Newtonsoft.Json;namespace TapTap.AntiAddiction.Model{    internal class ChildProtectedConfig     {        // 宵禁开始时间(作为可玩结束时间)        [JsonProperty("night_strict_start")]        internal string NightStrictStart { get; private set; }        // 宵禁结束时间(作为可玩开始时间)        [JsonProperty("night_strict_end")]        internal string NightStrictEnd { get; private set; }    }    /// <summary>    /// 充值限制    /// </summary>    internal class PayLimitTip     {        /// <summary>        /// 账号类型        /// </summary>        [JsonProperty("account_type")]        internal int AccountType { get; private set; }        /// <summary>        /// 单笔充值标题        /// </summary>        [JsonProperty("single_title")]        internal string SingleTitle { get; private set; }        /// <summary>        /// 单笔充值描述        /// </summary>        [JsonProperty("single_description")]        internal string SingleContent { get; private set; }        /// <summary>        /// 单笔充值限额        /// </summary>        [JsonProperty("single_limit")]        internal int SingleLimit { get; private set; }        /// <summary>        /// 当月充值标题        /// </summary>        [JsonProperty("month_title")]        internal string MonthTitle { get; private set; }        /// <summary>        /// 当月充值描述        /// </summary>        [JsonProperty("month_description")]        internal string MonthContent { get; private set; }        /// <summary>        /// 当月充值限额        /// </summary>        [JsonProperty("month_limit")]        internal int MonthLimit { get; private set; }    }    /// <summary>    /// 输入身份信息    /// </summary>    internal class AuthIdentifyTip    {        /// <summary>        /// 授权类型        /// </summary>        [JsonProperty("type")]        internal int AuthIdentifyType { get; private set; }        /// <summary>        /// 标题        /// </summary>        [JsonProperty("title")]        internal string Title { get; private set; }                      /// <summary>        /// 内容        /// </summary>        [JsonProperty("description")]        internal string Content { get; private set; }                /// <summary>        /// 否定按钮内容        /// </summary>        [JsonProperty("negative_button")]        internal string NegativeButtonText { get; private set; }                /// <summary>        /// 否定按钮内容        /// </summary>        [JsonProperty("positive_button")]        internal string PositiveButtonText { get; private set; }    }        /// <summary>    /// 健康提示    /// </summary>    internal class HealthReminderTip     {        [JsonProperty("type")]        internal int Type { get; set; }        [JsonProperty("title")]        internal string Title { get; set; }        [JsonProperty("description")]        internal string Content { get; set; }    }    internal class HealthReminderTips     {        [JsonProperty("account_type")]        internal int AccountType { get; private set; }        [JsonProperty("tips")]        internal HealthReminderTip[] Tips { get; private set; }    }        internal class UIConfig     {        [JsonProperty("pay_limit_words")]        internal PayLimitTip[] PayLimitTips { get; private set; }        [JsonProperty("health_reminder_words")]        internal HealthReminderTips[] HealthReminderTips { get; private set; }                /// <summary>        /// 支付限制时的按钮提醒        /// </summary>        [JsonProperty("pay_reminder")]        internal PaymentInfo PaymentInfo { get; private set; }                /// <summary>        /// 身份授权消息        /// </summary>        [JsonProperty("auth_identify_words")]        internal AuthIdentifyTip[] AuthIdentifyTips { get; private set; }                /// <summary>        /// 输入用户信息提示(越南防沉迷使用)        /// </summary>        [JsonProperty("input_realname_info")]        internal InputRealNameInfo InputRealNameInfoVietnam { get; private set; }                /// <summary>        /// 健康提示(越南防沉迷使用)        /// </summary>        [JsonProperty("health_reminder")]        internal HealReminderVietnam HealthReminderVietnam { get; private set; }    }    internal class UIPanelConfig    {        [JsonProperty("title")]        public string title;        [JsonProperty("description")]        public string description;        [JsonProperty("button")]        public string button;    }        internal class PaymentInfo    {        [JsonProperty("button_confirm")]        public string buttonConfirm;    }        internal class InputRealNameInfo : UIPanelConfig    {        [JsonProperty("submit_success_message")]        public string submitSuccessMsg;        [JsonProperty("birthdate_invalidate_message")]        public string invalidateMessage;    }            internal class HealReminderVietnam    {        [JsonProperty("title")]        public string title;        [JsonProperty("description")]        public string description;        [JsonProperty("button_exit")]        public string buttonExit;        [JsonProperty("button_switch")]        public string buttonSwitch;    }    public class AntiAddictionConfigResult     {        /// <summary>        /// 应用名        /// </summary>        [JsonProperty("name")]        internal string Name { get; private set; }        [JsonProperty("child_protected_config")]        internal ChildProtectedConfig ChildProtectedConfig { get; private set; }        [JsonProperty("upload_user_action")]        internal string UploadUserAction { get; private set; }        [JsonProperty("ui_config")]        internal UIConfig UIConfig { get; private set; }        [JsonProperty("holiday")]        internal List<string> Holidays { get; private set; }    }    internal class AntiAddictionConfigResponse : BaseResponse     {        [JsonProperty("data")]        internal AntiAddictionConfigResult Result { get; private set; }    }    public class AntiAddictionConfig    {        [JsonProperty("gameId")]        public string gameId;        [JsonProperty("useTapLogin")]        public bool useTapLogin;                [JsonProperty("showSwitchAccount")]        public bool showSwitchAccount = true;        [JsonProperty("region")] public Region region = Region.China;                //"g" means Displays the enumeration entry as a string value, if possible, and otherwise displays the integer value of the current instance.        internal string regionStr => region.ToString("g").ToLower();    }}
 |