Files

31 lines
688 B
C#
Raw Permalink Normal View History

2026-08-10 16:05:06 +08:00
using Newtonsoft.Json;
using System;
2026-07-16 19:00:09 +08:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2026-08-10 16:05:06 +08:00
namespace JinYuan.Models
2026-07-16 19:00:09 +08:00
{
public class ChannelConfig
{
public List<Channel> Channels { get; set; } = new List<Channel>();
}
public class Channel
{
public int ChannelId { get; set; }
public int DefaultValue { get; set; }
public List<string> Gears { get; set; } = new List<string>();
2026-08-10 16:05:06 +08:00
[JsonIgnore]
public string AllContent
{
get
{
return $"{ChannelId} {DefaultValue} {string.Join(",", Gears)}";
}
}
2026-07-16 19:00:09 +08:00
}
}