Backup/Discuz.Config/ScheduleConfigInfo.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace Discuz.Config
{
    [Serializable]
    public class ScheduleConfigInfo : IConfigInfo
    {
        public ScheduleConfigInfo()
        { }

        [XmlElement("enabled")]
        public bool Enabled;

        [XmlArray("events")]
        public Event[] Events;

        [XmlElement("minutes_interval")]
        public int TimerMinutesInterval;
    }

    [Serializable]
    [XmlRoot ("event")]
    public class Event
    {
        public Event()
        {

        }

        private string _key;

        /// <summary>
        /// A unique key used to query the database. The name of the Server will also be used to ensure the "Key" is 
        /// unique in a cluster
        /// </summary>
        [XmlAttribute("key")]
        public string Key
        {
            get { return this._key; }
            set { this._key = value; }
        }

        private int _timeOfDay = -1;

        /// <summary>
        /// Absolute time in mintues from midnight. Can be used to assure event is only 
        /// executed once per-day and as close to the specified
        /// time as possible. Example times: 0 = midnight, 27 = 12:27 am, 720 = Noon
        /// </summary>
        [XmlAttribute("time_of_day")]
        public int TimeOfDay
        {
            get { return this._timeOfDay; }
            set { this._timeOfDay = value; }
        }

        private int _minutes = 60;
后面还有 49 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。