Ejemplo n.º 1
0
        public override JObject SaveConfig()
        {
            JObject result = new JObject();

            Server.Save(ref result);
            Port.Save(ref result);
            Database.Save(ref result);
            User.Save(ref result);
            Password.Save(ref result);
            WorkDate.Save(ref result);
            WorkDateIsNow.Save(ref result);
            WorkDateVirtual.Save(ref result);
            WorkDateVirtualIsNow.Save(ref result);

            if (ImportRules.Count > 0)
            {
                var arr = new JArray();
                foreach (var rule in ImportRules)
                {
                    arr.Add(rule.ToJson());
                }
                result["importRules"] = arr;
            }

            return(result);
        }
Ejemplo n.º 2
0
        public override JObject SaveConfig()
        {
            JObject result = new JObject();

            DebugMode.Save(ref result);
            SchoolPrefix.Save(ref result);
            return(result);
        }