using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using TemuKJD.WXForms.TalkForms.TalkModel; namespace TemuKJD.WXForms.TalkForms.TalkHelper { public class ChatConfig { public static ChatSettingsParam ChatSettingConfig { get; set; } public static void LoadChatSetting() { ChatConfig.ChatSettingConfig = NaiBa.Util.Helper.ConfigHelper.LoadConfig("chat_setting"); if (ChatConfig.ChatSettingConfig == null) ChatConfig.ChatSettingConfig = new ChatSettingsParam(); } public static void SaveChatSettingParam() { NaiBa.Util.Helper.ConfigHelper.SaveConfig("chat_setting", ChatConfig.ChatSettingConfig); } } }