using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JinYuan.Models { public class ChannelConfig { public List Channels { get; set; } = new List(); } public class Channel { public int ChannelId { get; set; } public int DefaultValue { get; set; } public List Gears { get; set; } = new List(); [JsonIgnore] public string AllContent { get { return $"{ChannelId} {DefaultValue} {string.Join(",", Gears)}"; } } } }