31 lines
688 B
C#
31 lines
688 B
C#
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<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>();
|
|
|
|
[JsonIgnore]
|
|
public string AllContent
|
|
{
|
|
get
|
|
{
|
|
return $"{ChannelId} {DefaultValue} {string.Join(",", Gears)}";
|
|
}
|
|
}
|
|
}
|
|
}
|